Skip to content

Commit c48fb2f

Browse files
committed
Post release automated changes for azure-arm-elastic
1 parent 3320a55 commit c48fb2f

File tree

96 files changed

+3254
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3254
-2
lines changed

sdk/elastic/arm-elastic/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 2.0.1 (Unreleased)
4+
5+
### Features Added
6+
7+
### Breaking Changes
8+
9+
### Bugs Fixed
10+
11+
### Other Changes
12+
313
## 2.0.0 (2025-11-25)
414

515
### Features Added

sdk/elastic/arm-elastic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for MicrosoftElastic.",
6-
"version": "2.0.0",
6+
"version": "2.0.1",
77
"engines": {
88
"node": ">=20.0.0"
99
},

sdk/elastic/arm-elastic/samples/v2/javascript/README.md

Lines changed: 134 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to List all traffic filters associated with your Elastic monitor resource, helping you manage network traffic control.
10+
*
11+
* @summary List all traffic filters associated with your Elastic monitor resource, helping you manage network traffic control.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/AllTrafficFilters_list.json
13+
*/
14+
async function allTrafficFiltersList() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const credential = new DefaultAzureCredential();
20+
const client = new MicrosoftElastic(credential, subscriptionId);
21+
const result = await client.allTrafficFilters.list(resourceGroupName, monitorName);
22+
console.log(result);
23+
}
24+
25+
async function main() {
26+
await allTrafficFiltersList();
27+
}
28+
29+
main().catch(console.error);
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to Associate a traffic filter with your Elastic monitor resource to control and manage network traffic.
10+
*
11+
* @summary Associate a traffic filter with your Elastic monitor resource to control and manage network traffic.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/AssociateTrafficFilter_Update.json
13+
*/
14+
async function associateTrafficFilterAssociate() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const rulesetId = "31d91b5afb6f4c2eaaf104c97b1991dd";
20+
const options = { rulesetId };
21+
const credential = new DefaultAzureCredential();
22+
const client = new MicrosoftElastic(credential, subscriptionId);
23+
const result = await client.associateTrafficFilter.beginAssociateAndWait(
24+
resourceGroupName,
25+
monitorName,
26+
options,
27+
);
28+
console.log(result);
29+
}
30+
31+
async function main() {
32+
await associateTrafficFilterAssociate();
33+
}
34+
35+
main().catch(console.error);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to Retrieve marketplace and organization billing information mapped to the given Elastic monitor resource.
10+
*
11+
* @summary Retrieve marketplace and organization billing information mapped to the given Elastic monitor resource.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/BillingInfo_Get.json
13+
*/
14+
async function billingInfoGet() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const credential = new DefaultAzureCredential();
20+
const client = new MicrosoftElastic(credential, subscriptionId);
21+
const result = await client.billingInfo.get(resourceGroupName, monitorName);
22+
console.log(result);
23+
}
24+
25+
async function main() {
26+
await billingInfoGet();
27+
}
28+
29+
main().catch(console.error);
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to List all active deployments associated with the marketplace subscription linked to the given Elastic monitor resource.
10+
*
11+
* @summary List all active deployments associated with the marketplace subscription linked to the given Elastic monitor resource.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/ConnectedPartnerResources_List.json
13+
*/
14+
async function connectedPartnerResourcesList() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const credential = new DefaultAzureCredential();
20+
const client = new MicrosoftElastic(credential, subscriptionId);
21+
const resArray = new Array();
22+
for await (const item of client.connectedPartnerResources.list(resourceGroupName, monitorName)) {
23+
resArray.push(item);
24+
}
25+
console.log(resArray);
26+
}
27+
28+
async function main() {
29+
await connectedPartnerResourcesList();
30+
}
31+
32+
main().catch(console.error);
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to Create and associate an IP filter with your Elastic monitor resource to control and manage network traffic.
10+
*
11+
* @summary Create and associate an IP filter with your Elastic monitor resource to control and manage network traffic.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/IPTrafficFilter_Create.json
13+
*/
14+
async function createAndAssociateIPFilterCreate() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const ips = "192.168.131.0, 192.168.132.6/22";
20+
const options = { ips };
21+
const credential = new DefaultAzureCredential();
22+
const client = new MicrosoftElastic(credential, subscriptionId);
23+
const result = await client.createAndAssociateIPFilter.beginCreateAndWait(
24+
resourceGroupName,
25+
monitorName,
26+
options,
27+
);
28+
console.log(result);
29+
}
30+
31+
async function main() {
32+
await createAndAssociateIPFilterCreate();
33+
}
34+
35+
main().catch(console.error);
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to Create and associate a PL filter with your Elastic monitor resource to control and manage network traffic.
10+
*
11+
* @summary Create and associate a PL filter with your Elastic monitor resource to control and manage network traffic.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/PrivateLinkTrafficFilters_Create.json
13+
*/
14+
async function createAndAssociatePlFilterCreate() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const privateEndpointGuid = "fdb54d3b-e85e-4d08-8958-0d2f7g523df9";
20+
const privateEndpointName = "myPrivateEndpoint";
21+
const options = {
22+
privateEndpointGuid,
23+
privateEndpointName,
24+
};
25+
const credential = new DefaultAzureCredential();
26+
const client = new MicrosoftElastic(credential, subscriptionId);
27+
const result = await client.createAndAssociatePLFilter.beginCreateAndWait(
28+
resourceGroupName,
29+
monitorName,
30+
options,
31+
);
32+
console.log(result);
33+
}
34+
35+
async function main() {
36+
await createAndAssociatePlFilterCreate();
37+
}
38+
39+
main().catch(console.error);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
const { MicrosoftElastic } = require("@azure/arm-elastic");
5+
const { DefaultAzureCredential } = require("@azure/identity");
6+
require("dotenv/config");
7+
8+
/**
9+
* This sample demonstrates how to Fetch detailed information about Elastic cloud deployments corresponding to the Elastic monitor resource.
10+
*
11+
* @summary Fetch detailed information about Elastic cloud deployments corresponding to the Elastic monitor resource.
12+
* x-ms-original-file: specification/elastic/resource-manager/Microsoft.Elastic/stable/2025-06-01/examples/DeploymentInfo_List.json
13+
*/
14+
async function deploymentInfoList() {
15+
const subscriptionId =
16+
process.env["ELASTIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
17+
const resourceGroupName = process.env["ELASTIC_RESOURCE_GROUP"] || "myResourceGroup";
18+
const monitorName = "myMonitor";
19+
const credential = new DefaultAzureCredential();
20+
const client = new MicrosoftElastic(credential, subscriptionId);
21+
const result = await client.deploymentInfo.list(resourceGroupName, monitorName);
22+
console.log(result);
23+
}
24+
25+
async function main() {
26+
await deploymentInfoList();
27+
}
28+
29+
main().catch(console.error);

0 commit comments

Comments
 (0)