published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
Class representing Traffic Manager User Metrics.
Uses Azure REST API version 2022-04-01.
Other available API versions: 2017-09-01-preview, 2018-04-01, 2018-08-01, 2022-04-01-preview, 2024-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native trafficmanager [ApiVersion]. See the version guide for details.
Example Usage
TrafficManagerUserMetricsKeys-PUT
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var trafficManagerUserMetricsKey = new AzureNative.TrafficManager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey");
});
package main
import (
trafficmanager "github.com/pulumi/pulumi-azure-native-sdk/trafficmanager/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := trafficmanager.NewTrafficManagerUserMetricsKey(ctx, "trafficManagerUserMetricsKey", nil)
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_trafficmanager_traffic_manager_user_metrics_key" "trafficManagerUserMetricsKey" {
lifecycle {
create_before_destroy = true
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.TrafficManagerUserMetricsKey;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var trafficManagerUserMetricsKey = new TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey");
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const trafficManagerUserMetricsKey = new azure_native.trafficmanager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey", {});
import pulumi
import pulumi_azure_native as azure_native
traffic_manager_user_metrics_key = azure_native.trafficmanager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey")
resources:
trafficManagerUserMetricsKey:
type: azure-native:trafficmanager:TrafficManagerUserMetricsKey
Create TrafficManagerUserMetricsKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficManagerUserMetricsKey(name: string, args?: TrafficManagerUserMetricsKeyArgs, opts?: CustomResourceOptions);@overload
def TrafficManagerUserMetricsKey(resource_name: str,
args: Optional[TrafficManagerUserMetricsKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficManagerUserMetricsKey(resource_name: str,
opts: Optional[ResourceOptions] = None)func NewTrafficManagerUserMetricsKey(ctx *Context, name string, args *TrafficManagerUserMetricsKeyArgs, opts ...ResourceOption) (*TrafficManagerUserMetricsKey, error)public TrafficManagerUserMetricsKey(string name, TrafficManagerUserMetricsKeyArgs? args = null, CustomResourceOptions? opts = null)
public TrafficManagerUserMetricsKey(String name, TrafficManagerUserMetricsKeyArgs args)
public TrafficManagerUserMetricsKey(String name, TrafficManagerUserMetricsKeyArgs args, CustomResourceOptions options)
type: azure-native:trafficmanager:TrafficManagerUserMetricsKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_trafficmanager_traffic_manager_user_metrics_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var trafficManagerUserMetricsKeyResource = new AzureNative.TrafficManager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource");
example, err := trafficmanager.NewTrafficManagerUserMetricsKey(ctx, "trafficManagerUserMetricsKeyResource", nil)
resource "azure-native_trafficmanager_traffic_manager_user_metrics_key" "trafficManagerUserMetricsKeyResource" {
lifecycle {
create_before_destroy = true
}
}
var trafficManagerUserMetricsKeyResource = new TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource");
traffic_manager_user_metrics_key_resource = azure_native.trafficmanager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource")
const trafficManagerUserMetricsKeyResource = new azure_native.trafficmanager.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource", {});
type: azure-native:trafficmanager:TrafficManagerUserMetricsKey
properties: {}
TrafficManagerUserMetricsKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TrafficManagerUserMetricsKey resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficManagerUserMetricsKey resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- The key returned by the User Metrics operation.
- Name string
- The name of the resource
- Type string
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- The key returned by the User Metrics operation.
- Name string
- The name of the resource
- Type string
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- azure_
api_ stringversion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- The key returned by the User Metrics operation.
- name string
- The name of the resource
- type string
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- The key returned by the User Metrics operation.
- name String
- The name of the resource
- type String
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- The key returned by the User Metrics operation.
- name string
- The name of the resource
- type string
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- The key returned by the User Metrics operation.
- name str
- The name of the resource
- type str
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- The key returned by the User Metrics operation.
- name String
- The name of the resource
- type String
- The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Look up Existing TrafficManagerUserMetricsKey Resource
Get an existing TrafficManagerUserMetricsKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): TrafficManagerUserMetricsKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> TrafficManagerUserMetricsKeyfunc GetTrafficManagerUserMetricsKey(ctx *Context, name string, id IDInput, state *TrafficManagerUserMetricsKeyState, opts ...ResourceOption) (*TrafficManagerUserMetricsKey, error)public static TrafficManagerUserMetricsKey Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static TrafficManagerUserMetricsKey get(String name, Output<String> id, CustomResourceOptions options)resources: existingTrafficManagerUserMetricsKey: type: azure-native:trafficmanager:TrafficManagerUserMetricsKey get: id: ${id}import {
to = azure-native_trafficmanager_traffic_manager_user_metrics_key.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state TrafficManagerUserMetricsKeyState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:trafficmanager:TrafficManagerUserMetricsKey default /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Wednesday, Nov 18, 2026 by Pulumi