Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/endpoint/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ Create a traffic manager endpoint.
```bash
network traffic-manager endpoint create -n MyTmEndpoint --profile-name MyTmProfile -g MyResourceGroup --type azureEndpoints --target-resource-id $MyWebApp1Id --subnets [{first:10.0.0.0}] --custom-headers [{name:test,value:best}]
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30ve30ve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{}/{}/{} 2024-04-01-preview -->

#### examples

- Create an endpoint for a performance profile to point to an Azure Web App endpoint.
```bash
network traffic-manager endpoint create -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints --target-resource-id $MyWebApp1Id --endpoint-status enabled
```

- Create an endpoint.
```bash
network traffic-manager endpoint create -n MyTmEndpoint --profile-name MyTmProfile -g MyResourceGroup --type azureEndpoints --target-resource-id $MyWebApp1Id --subnets [{first:10.0.0.0}] --custom-headers [{name:test,value:best}]
```
16 changes: 16 additions & 0 deletions Commands/network/traffic-manager/endpoint/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ Delete a traffic manager endpoint.
```bash
network traffic-manager endpoint delete --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription --type azureEndpoints
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30ve30ve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{}/{}/{} 2024-04-01-preview -->

#### examples

- Delete a traffic manager endpoint.
```bash
network traffic-manager endpoint delete -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
```

- Delete a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint delete --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription --type azureEndpoints
```
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ Get the default geographic hierarchy used by the geographic traffic routing meth
```bash
network traffic-manager endpoint show-geographic-hierarchy
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubmV0d29yay90cmFmZmljbWFuYWdlcmdlb2dyYXBoaWNoaWVyYXJjaGllcy9kZWZhdWx0/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /providers/microsoft.network/trafficmanagergeographichierarchies/default 2024-04-01-preview -->

#### examples

- Get the default geographic hierarchy used by the geographic traffic routing method.
```bash
network traffic-manager endpoint show-geographic-hierarchy
```
11 changes: 11 additions & 0 deletions Commands/network/traffic-manager/endpoint/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ Get the details of a traffic manager endpoint.
```bash
network traffic-manager endpoint show -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30ve30ve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{}/{}/{} 2024-04-01-preview -->

#### examples

- Get the details of a traffic manager endpoint.
```bash
network traffic-manager endpoint show -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --type azureEndpoints
```
27 changes: 27 additions & 0 deletions Commands/network/traffic-manager/endpoint/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,30 @@ Update a traffic manager endpoint.
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,scope:24}]
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,last:11.0.0.0}]
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30ve30ve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{}/{}/{} 2024-04-01-preview -->

#### examples

- Update a traffic manager endpoint to change its weight.
```bash
network traffic-manager endpoint update -g MyResourceGroup --profile-name MyTmProfile -n MyEndpoint --weight 20 --type azureEndpoints
```

- Update a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint update --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --target webserver.mysite.com --type azureEndpoints
```

- Update a traffic manager endpoint. (autogenerated)
```bash
network traffic-manager endpoint update --endpoint-status Enabled --name MyEndpoint --profile-name MyTmProfile --resource-group MyResourceGroup --type azureEndpoints
```

- Update a traffic manager endpoint.
```bash
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,scope:24}]
network traffic-manager endpoint update -n MyTmEndpoint --type azureEndpoints --profile-name MyTmProfile -g MyResourceGroup --subnets [{first:10.0.0.0,last:11.0.0.0}]
```
11 changes: 11 additions & 0 deletions Commands/network/traffic-manager/profile/_check-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ Check the availability of a relative DNS name.
```bash
network traffic-manager profile check-dns -n mywebapp
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQubmV0d29yay9jaGVja3RyYWZmaWNtYW5hZ2VybmFtZWF2YWlsYWJpbGl0eQ==/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /providers/microsoft.network/checktrafficmanagernameavailability 2024-04-01-preview -->

#### examples

- Check the availability of 'mywebapp.trafficmanager.net' in Azure.
```bash
network traffic-manager profile check-dns -n mywebapp
```
18 changes: 17 additions & 1 deletion Commands/network/traffic-manager/profile/_create.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _network traffic-manager profile create_

Create a traffic manager profile.
Create a Traffic Manager profile.

## Versions

Expand Down Expand Up @@ -51,3 +51,19 @@ Create a traffic manager profile.
```bash
network traffic-manager profile create -n MyTmProfile -g MyResourceGroup --routing-method subnet --unique-dns-name mywebapp --custom-headers [{name:foo,value:bar}] --status-code-ranges [{min:200,max:202}] --path "/"
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{} 2024-04-01-preview -->

#### examples

- Create a traffic manager profile with performance routing.
```bash
network traffic-manager profile create -g MyResourceGroup -n MyTmProfile --routing-method Performance --unique-dns-name mywebapp --ttl 30 --protocol HTTP --port 80 --path "/"
```

- Create a traffic manager profile.
```bash
network traffic-manager profile create -n MyTmProfile -g MyResourceGroup --routing-method subnet --unique-dns-name mywebapp --custom-headers [{name:foo,value:bar}] --status-code-ranges [{min:200,max:202}] --path "/"
```
18 changes: 17 additions & 1 deletion Commands/network/traffic-manager/profile/_delete.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _network traffic-manager profile delete_

Delete a traffic manager profile.
Delete a Traffic Manager profile.

## Versions

Expand Down Expand Up @@ -51,3 +51,19 @@ Delete a traffic manager profile.
```bash
network traffic-manager profile delete --name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{} 2024-04-01-preview -->

#### examples

- Delete a traffic manager profile.
```bash
network traffic-manager profile delete -g MyResourceGroup -n MyTmProfile
```

- Delete a traffic manager profile. (autogenerated)
```bash
network traffic-manager profile delete --name MyTmProfile --resource-group MyResourceGroup --subscription MySubscription
```
14 changes: 13 additions & 1 deletion Commands/network/traffic-manager/profile/_list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _network traffic-manager profile list_

List traffic manager profiles.
List all Traffic Manager profiles within a resource group.

## Versions

Expand Down Expand Up @@ -39,3 +39,15 @@ List traffic manager profiles.
```bash
network traffic-manager profile list -g MyResourceGroup
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXM=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/trafficmanagerprofiles 2024-04-01-preview -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles 2024-04-01-preview -->

#### examples

- List traffic manager profiles.
```bash
network traffic-manager profile list -g MyResourceGroup
```
13 changes: 12 additions & 1 deletion Commands/network/traffic-manager/profile/_show.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _network traffic-manager profile show_

Get the details of a traffic manager profile.
Get a Traffic Manager profile.

## Versions

Expand Down Expand Up @@ -36,3 +36,14 @@ Get the details of a traffic manager profile.
```bash
network traffic-manager profile show -g MyResourceGroup -n MyTmProfile
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{} 2024-04-01-preview -->

#### examples

- Get the details of a traffic manager profile.
```bash
network traffic-manager profile show -g MyResourceGroup -n MyTmProfile
```
23 changes: 22 additions & 1 deletion Commands/network/traffic-manager/profile/_update.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Command] _network traffic-manager profile update_

Update a traffic manager profile.
Update a Traffic Manager profile.

## Versions

Expand Down Expand Up @@ -66,3 +66,24 @@ Update a traffic manager profile.
```bash
network traffic-manager profile update -n MyTmProfile -g MyResourceGroup --status-code-ranges [{min:200,max:204}] --custom-headers [{name:foo,value:doo},{name:test,value:best}]
```

### [2024-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3RyYWZmaWNtYW5hZ2VycHJvZmlsZXMve30=/2024-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/trafficmanagerprofiles/{} 2024-04-01-preview -->

#### examples

- Update a traffic manager profile to change the TTL to 300.
```bash
network traffic-manager profile update -g MyResourceGroup -n MyTmProfile --ttl 300
```

- Update a traffic manager profile. (autogenerated)
```bash
network traffic-manager profile update --name MyTmProfile --resource-group MyResourceGroup --status Enabled
```

- Update a traffic manager profile.
```bash
network traffic-manager profile update -n MyTmProfile -g MyResourceGroup --status-code-ranges [{min:200,max:204}] --custom-headers [{name:foo,value:doo},{name:test,value:best}]
```
10 changes: 5 additions & 5 deletions Commands/network/traffic-manager/profile/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Manage Azure Traffic Manager profiles.
: Check the availability of a relative DNS name.

- [create](/Commands/network/traffic-manager/profile/_create.md)
: Create a traffic manager profile.
: Create a Traffic Manager profile.

- [delete](/Commands/network/traffic-manager/profile/_delete.md)
: Delete a traffic manager profile.
: Delete a Traffic Manager profile.

- [list](/Commands/network/traffic-manager/profile/_list.md)
: List traffic manager profiles.
: List all Traffic Manager profiles within a resource group.

- [show](/Commands/network/traffic-manager/profile/_show.md)
: Get the details of a traffic manager profile.
: Get a Traffic Manager profile.

- [update](/Commands/network/traffic-manager/profile/_update.md)
: Update a traffic manager profile.
: Update a Traffic Manager profile.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.network/trafficmanagergeographichierarchies/default", "version": "2024-04-01-preview", "swagger": "mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljTWFuYWdlckdlb2dyYXBoaWNIaWVyYXJjaGllcy9kZWZhdWx0/V/MjAyNC0wNC0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "network traffic-manager endpoint", "commands": [{"name": "show-geographic-hierarchy", "version": "2024-04-01-preview", "resources": [{"id": "/providers/microsoft.network/trafficmanagergeographichierarchies/default", "version": "2024-04-01-preview", "swagger": "mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljTWFuYWdlckdlb2dyYXBoaWNIaWVyYXJjaGllcy9kZWZhdWx0/V/MjAyNC0wNC0wMS1wcmV2aWV3"}], "operations": [{"operationId": "GeographicHierarchies_GetDefault", "http": {"path": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default", "request": {"method": "get", "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default"}}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "geographicHierarchy", "props": [{"type": "string", "name": "code"}, {"type": "string", "name": "name"}, {"type": "array<@Region_read>", "name": "regions", "item": {"type": "@Region_read"}}], "cls": "Region_read"}], "clientFlatten": true}, {"type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/providers/microsoft.network/trafficmanagergeographichierarchies/default" version="2024-04-01-preview" swagger="mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljTWFuYWdlckdlb2dyYXBoaWNIaWVyYXJjaGllcy9kZWZhdWx0/V/MjAyNC0wNC0wMS1wcmV2aWV3"/>
<commandGroup name="network traffic-manager endpoint">
<command name="show-geographic-hierarchy" version="2024-04-01-preview">
<resource id="/providers/microsoft.network/trafficmanagergeographichierarchies/default" version="2024-04-01-preview" swagger="mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay90cmFmZmljTWFuYWdlckdlb2dyYXBoaWNIaWVyYXJjaGllcy9kZWZhdWx0/V/MjAyNC0wNC0wMS1wcmV2aWV3"/>
<operation operationId="GeographicHierarchies_GetDefault">
<http path="/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default">
<request method="get">
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-04-01-preview&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="ResourceId" name="id">
<format template="/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default"/>
</prop>
<prop type="string" name="name"/>
<prop type="object" name="properties" clientFlatten="True">
<prop type="object" name="geographicHierarchy" cls="Region_read">
<prop type="string" name="code"/>
<prop type="string" name="name"/>
<prop type="array<@Region_read>" name="regions">
<item type="@Region_read"/>
</prop>
</prop>
</prop>
<prop type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.network/checktrafficmanagernameavailability", "version": "2024-04-01-preview", "swagger": "mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9jaGVja1RyYWZmaWNNYW5hZ2VyTmFtZUF2YWlsYWJpbGl0eQ==/V/MjAyNC0wNC0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "network traffic-manager profile", "commands": [{"name": "check-dns", "version": "2024-04-01-preview", "resources": [{"id": "/providers/microsoft.network/checktrafficmanagernameavailability", "version": "2024-04-01-preview", "swagger": "mgmt-plane/trafficmanager/ResourceProviders/Microsoft.Network/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9jaGVja1RyYWZmaWNNYW5hZ2VyTmFtZUF2YWlsYWJpbGl0eQ==/V/MjAyNC0wNC0wMS1wcmV2aWV3"}], "argGroups": [{"name": "Parameters", "args": [{"type": "string", "var": "$parameters.name", "options": ["n", "name"], "group": "Parameters", "help": {"short": "DNS prefix to verify availability for."}}, {"type": "string", "var": "$parameters.type", "options": ["type"], "group": "Parameters", "help": {"short": "The type of the resource."}, "default": {"value": "Microsoft.Network/trafficManagerProfiles"}}]}], "operations": [{"operationId": "Profiles_CheckTrafficManagerRelativeDnsNameAvailability", "http": {"path": "/providers/Microsoft.Network/checkTrafficManagerNameAvailability", "request": {"method": "post", "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-04-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "name", "arg": "$parameters.name"}, {"type": "string", "name": "type", "arg": "$parameters.type"}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "message"}, {"type": "string", "name": "name"}, {"type": "boolean", "name": "nameAvailable"}, {"type": "string", "name": "reason"}, {"type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]}
Loading
Loading