Traffic Manager User Metrics Keys - Create Or Update

Create or update a subscription-level key used for Real User Metrics collection.

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default?api-version=2022-04-01

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
201 Created

UserMetricsModel

A new subscription-level key has been created for Real User Metrics collection.

Other Status Codes

CloudError

Default response. It will be deserialized as per the Error definition.

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

TrafficManagerUserMetricsKeys-PUT

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default?api-version=2022-04-01

Sample response

{
  "id": "/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default",
  "name": "default",
  "type": "Microsoft.Network/trafficManagerUserMetricsKeys",
  "properties": {
    "key": "9ea056eb38f145a0891b5d5dc15e9aa2"
  }
}

Definitions

Name Description
CloudError

An error returned by the Azure Resource Manager

CloudErrorBody

The content of an error returned by the Azure Resource Manager

UserMetricsModel

Class representing Traffic Manager User Metrics.

CloudError

An error returned by the Azure Resource Manager

Name Type Description
error

CloudErrorBody

The content of the error.

CloudErrorBody

The content of an error returned by the Azure Resource Manager

Name Type Description
code

string

Error code

details

CloudErrorBody[]

Error details

message

string

Error message

target

string

Error target

UserMetricsModel

Class representing Traffic Manager User Metrics.

Name Type Description
id

string

Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}

name

string

The name of the resource

properties.key

string

The key returned by the User Metrics operation.

type

string

The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.