TrafficManagerEndpoint
Manages a Traffic Manager Endpoint.
Create a TrafficManagerEndpoint Resource
new TrafficManagerEndpoint(name: string, args: TrafficManagerEndpointArgs, opts?: CustomResourceOptions);def TrafficManagerEndpoint(resource_name, opts=None, custom_headers=None, endpoint_location=None, endpoint_status=None, geo_mappings=None, min_child_endpoints=None, name=None, priority=None, profile_name=None, resource_group_name=None, subnets=None, target=None, target_resource_id=None, type=None, weight=None, __props__=None);func NewTrafficManagerEndpoint(ctx *Context, name string, args TrafficManagerEndpointArgs, opts ...ResourceOption) (*TrafficManagerEndpoint, error)public TrafficManagerEndpoint(string name, TrafficManagerEndpointArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TrafficManagerEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TrafficManagerEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficManagerEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficManagerEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TrafficManagerEndpoint resource accepts the following input properties:
- Profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- Resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- Type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- Custom
Headers List<TrafficManager Endpoint Custom Header Args> One or more
custom_headerblocks as defined below- Endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- Endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- Geo
Mappings List<string> A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- Min
Child intEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- Name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- Subnets
List<Traffic
Manager Endpoint Subnet Args> One or more
subnetblocks as defined below- Target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- Target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- Weight int
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- Profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- Resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- Type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- Custom
Headers []TrafficManager Endpoint Custom Header One or more
custom_headerblocks as defined below- Endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- Endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- Geo
Mappings []string A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- Min
Child intEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- Name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- Subnets
[]Traffic
Manager Endpoint Subnet One or more
subnetblocks as defined below- Target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- Target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- Weight int
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- custom
Headers TrafficManager Endpoint Custom Header[] One or more
custom_headerblocks as defined below- endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- geo
Mappings string[] A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- min
Child numberEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- priority number
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- subnets
Traffic
Manager Endpoint Subnet[] One or more
subnetblocks as defined below- target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- weight number
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- profile_
name str The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- resource_
group_ strname The name of the resource group where the Traffic Manager Profile exists.
- type str
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- custom_
headers List[TrafficManager Endpoint Custom Header] One or more
custom_headerblocks as defined below- endpoint_
location str Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- endpoint_
status str The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- geo_
mappings List[str] A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- min_
child_ floatendpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- name str
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- priority float
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- subnets
List[Traffic
Manager Endpoint Subnet] One or more
subnetblocks as defined below- target str
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- target_
resource_ strid The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- weight float
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficManagerEndpoint resource produces the following output properties:
- Endpoint
Monitor stringStatus - Id string
- The provider-assigned unique ID for this managed resource.
- Endpoint
Monitor stringStatus - Id string
- The provider-assigned unique ID for this managed resource.
- endpoint
Monitor stringStatus - id string
- The provider-assigned unique ID for this managed resource.
- endpoint_
monitor_ strstatus - id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing TrafficManagerEndpoint Resource
Get an existing TrafficManagerEndpoint 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>, state?: TrafficManagerEndpointState, opts?: CustomResourceOptions): TrafficManagerEndpointstatic get(resource_name, id, opts=None, custom_headers=None, endpoint_location=None, endpoint_monitor_status=None, endpoint_status=None, geo_mappings=None, min_child_endpoints=None, name=None, priority=None, profile_name=None, resource_group_name=None, subnets=None, target=None, target_resource_id=None, type=None, weight=None, __props__=None);func GetTrafficManagerEndpoint(ctx *Context, name string, id IDInput, state *TrafficManagerEndpointState, opts ...ResourceOption) (*TrafficManagerEndpoint, error)public static TrafficManagerEndpoint Get(string name, Input<string> id, TrafficManagerEndpointState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Custom
Headers List<TrafficManager Endpoint Custom Header Args> One or more
custom_headerblocks as defined below- Endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- Endpoint
Monitor stringStatus - Endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- Geo
Mappings List<string> A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- Min
Child intEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- Name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- Profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- Resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- Subnets
List<Traffic
Manager Endpoint Subnet Args> One or more
subnetblocks as defined below- Target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- Target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- Type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- Weight int
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- Custom
Headers []TrafficManager Endpoint Custom Header One or more
custom_headerblocks as defined below- Endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- Endpoint
Monitor stringStatus - Endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- Geo
Mappings []string A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- Min
Child intEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- Name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- Profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- Resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- Subnets
[]Traffic
Manager Endpoint Subnet One or more
subnetblocks as defined below- Target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- Target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- Type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- Weight int
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- custom
Headers TrafficManager Endpoint Custom Header[] One or more
custom_headerblocks as defined below- endpoint
Location string Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- endpoint
Monitor stringStatus - endpoint
Status string The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- geo
Mappings string[] A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- min
Child numberEndpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- name string
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- priority number
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- profile
Name string The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- resource
Group stringName The name of the resource group where the Traffic Manager Profile exists.
- subnets
Traffic
Manager Endpoint Subnet[] One or more
subnetblocks as defined below- target string
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- target
Resource stringId The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- type string
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- weight number
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
- custom_
headers List[TrafficManager Endpoint Custom Header] One or more
custom_headerblocks as defined below- endpoint_
location str Specifies the Azure location of the Endpoint, this must be specified for Profiles using the
Performancerouting method if the Endpoint is of either typenestedEndpointsorexternalEndpoints. For Endpoints of typeazureEndpointsthe value will be taken from the location of the Azure target resource.- endpoint_
monitor_ strstatus - endpoint_
status str The status of the Endpoint, can be set to either
EnabledorDisabled. Defaults toEnabled.- geo_
mappings List[str] A list of Geographic Regions used to distribute traffic, such as
WORLD,UKorDE. The same location can’t be specified in two endpoints. See the Geographic Hierarchies documentation for more information.- min_
child_ floatendpoints This argument specifies the minimum number of endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type
nestedEndpointsand defaults to1.- name str
The name of the Traffic Manager endpoint. Changing this forces a new resource to be created.
- priority float
Specifies the priority of this Endpoint, this must be specified for Profiles using the
Prioritytraffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.- profile_
name str The name of the Traffic Manager Profile to attach create the Traffic Manager endpoint.
- resource_
group_ strname The name of the resource group where the Traffic Manager Profile exists.
- subnets
List[Traffic
Manager Endpoint Subnet] One or more
subnetblocks as defined below- target str
The FQDN DNS name of the target. This argument must be provided for an endpoint of type
externalEndpoints, for other types it will be computed.- target_
resource_ strid The resource id of an Azure resource to target. This argument must be provided for an endpoint of type
azureEndpointsornestedEndpoints.- type str
The Endpoint type, must be one of: -
azureEndpoints-externalEndpoints-nestedEndpoints- weight float
Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the
Weightedtraffic routing method. Supports values between 1 and 1000.
Supporting Types
TrafficManagerEndpointCustomHeader
TrafficManagerEndpointSubnet
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.