TrafficController - Create Or Update
Create a TrafficController
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}?api-version=2023-05-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
traffic
|
path | True |
string |
traffic controller name for path Regex pattern: |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
The geo-location where the resource lives |
tags |
object |
Resource tags. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Resource 'TrafficController' update operation succeeded |
|
201 Created |
Resource 'TrafficController' create operation succeeded Headers Retry-After: integer |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Put Traffic Controller
Sample request
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1?api-version=2023-05-01-preview
{
"location": "NorthCentralUS",
"tags": {
"key1": "value1"
}
}
Sample response
{
"name": "tc1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1",
"type": "Microsoft.ServiceNetworking/trafficControllers",
"location": "NorthCentralUS",
"tags": {
"key1": "value1"
},
"properties": {
"configurationEndpoints": [
"abc.trafficcontroller.azure.net"
],
"frontends": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"
}
],
"associations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"
}
],
"provisioningState": "Succeeded"
}
}
{
"name": "tc1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1",
"type": "Microsoft.ServiceNetworking/trafficControllers",
"location": "NorthCentralUS",
"tags": {
"key1": "value1"
},
"properties": {
"configurationEndpoints": [
"abc.trafficcontroller.azure.net"
],
"frontends": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"
}
],
"associations": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"
}
],
"provisioningState": "Succeeded"
}
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Provisioning |
|
Resource |
Resource ID definition used by parent to reference child resources. |
system |
Metadata pertaining to creation and last modification of the resource. |
Traffic |
Concrete tracked resource types can be created by aliasing this type using a specific property type. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ProvisioningState
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Deleting |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
|
Updating |
string |
ResourceId
Resource ID definition used by parent to reference child resources.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID of child resource. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
TrafficController
Concrete tracked resource types can be created by aliasing this type using a specific property type.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.associations |
Associations References List |
|
properties.configurationEndpoints |
string[] |
Configuration Endpoints. |
properties.frontends |
Frontends References List |
|
properties.provisioningState |
The status of the last operation. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |