TrafficManagerProfile
Manages a Traffic Manager Profile to which multiple endpoints can be attached.
Create a TrafficManagerProfile Resource
new TrafficManagerProfile(name: string, args: TrafficManagerProfileArgs, opts?: CustomResourceOptions);def TrafficManagerProfile(resource_name, opts=None, dns_config=None, monitor_config=None, name=None, profile_status=None, resource_group_name=None, tags=None, traffic_routing_method=None, __props__=None);func NewTrafficManagerProfile(ctx *Context, name string, args TrafficManagerProfileArgs, opts ...ResourceOption) (*TrafficManagerProfile, error)public TrafficManagerProfile(string name, TrafficManagerProfileArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TrafficManagerProfileArgs
- 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 TrafficManagerProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficManagerProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficManagerProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TrafficManagerProfile resource accepts the following input properties:
- Dns
Config TrafficManager Profile Dns Config Args This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- Monitor
Config TrafficManager Profile Monitor Config Args This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- Resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- Traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- Name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- Profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Dns
Config TrafficManager Profile Dns Config This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- Monitor
Config TrafficManager Profile Monitor Config This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- Resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- Traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- Name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- Profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- map[string]string
A mapping of tags to assign to the resource.
- dns
Config TrafficManager Profile Dns Config This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- monitor
Config TrafficManager Profile Monitor Config This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- {[key: string]: string}
A mapping of tags to assign to the resource.
- dns_
config Dict[TrafficManager Profile Dns Config] This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- monitor_
config Dict[TrafficManager Profile Monitor Config] This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- resource_
group_ strname The name of the resource group in which to create the Traffic Manager profile.
- traffic_
routing_ strmethod Specifies the algorithm used to route traffic, possible values are:
- name str
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile_
status str The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficManagerProfile resource produces the following output properties:
Look up an Existing TrafficManagerProfile Resource
Get an existing TrafficManagerProfile 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?: TrafficManagerProfileState, opts?: CustomResourceOptions): TrafficManagerProfilestatic get(resource_name, id, opts=None, dns_config=None, fqdn=None, monitor_config=None, name=None, profile_status=None, resource_group_name=None, tags=None, traffic_routing_method=None, __props__=None);func GetTrafficManagerProfile(ctx *Context, name string, id IDInput, state *TrafficManagerProfileState, opts ...ResourceOption) (*TrafficManagerProfile, error)public static TrafficManagerProfile Get(string name, Input<string> id, TrafficManagerProfileState? 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:
- Dns
Config TrafficManager Profile Dns Config Args This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- Fqdn string
The FQDN of the created Profile.
- Monitor
Config TrafficManager Profile Monitor Config Args This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- Name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- Profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- Resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- Dns
Config TrafficManager Profile Dns Config This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- Fqdn string
The FQDN of the created Profile.
- Monitor
Config TrafficManager Profile Monitor Config This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- Name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- Profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- Resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- map[string]string
A mapping of tags to assign to the resource.
- Traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- dns
Config TrafficManager Profile Dns Config This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- fqdn string
The FQDN of the created Profile.
- monitor
Config TrafficManager Profile Monitor Config This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- name string
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile
Status string The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- resource
Group stringName The name of the resource group in which to create the Traffic Manager profile.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- traffic
Routing stringMethod Specifies the algorithm used to route traffic, possible values are:
- dns_
config Dict[TrafficManager Profile Dns Config] This block specifies the DNS configuration of the Profile, it supports the fields documented below.
- fqdn str
The FQDN of the created Profile.
- monitor_
config Dict[TrafficManager Profile Monitor Config] This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
- name str
The name of the Traffic Manager profile. Changing this forces a new resource to be created.
- profile_
status str The status of the profile, can be set to either
EnabledorDisabled. Defaults toEnabled.- resource_
group_ strname The name of the resource group in which to create the Traffic Manager profile.
- Dict[str, str]
A mapping of tags to assign to the resource.
- traffic_
routing_ strmethod Specifies the algorithm used to route traffic, possible values are:
Supporting Types
TrafficManagerProfileDnsConfig
- Relative
Name string The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- Ttl int
The TTL value of the Profile used by Local DNS resolvers and clients.
- Relative
Name string The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- Ttl int
The TTL value of the Profile used by Local DNS resolvers and clients.
- relative
Name string The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl number
The TTL value of the Profile used by Local DNS resolvers and clients.
- relative
Name str The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
- ttl float
The TTL value of the Profile used by Local DNS resolvers and clients.
TrafficManagerProfileMonitorConfig
- Port int
The port number used by the monitoring checks.
- Protocol string
The protocol used by the monitoring checks, supported values are
HTTP,HTTPSandTCP.- Custom
Headers List<TrafficManager Profile Monitor Config Custom Header Args> One or more
custom_headerblocks as defined below.- Expected
Status List<string>Code Ranges A list of status code ranges in the format of
100-101.- Interval
In intSeconds The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here:
30(normal probing) and10(fast probing). The default value is30.- Path string
The path used by the monitoring checks. Required when
protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.- Timeout
In intSeconds The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If
interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.- Tolerated
Number intOf Failures The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between
0and9. The default value is3
- Port int
The port number used by the monitoring checks.
- Protocol string
The protocol used by the monitoring checks, supported values are
HTTP,HTTPSandTCP.- Custom
Headers []TrafficManager Profile Monitor Config Custom Header One or more
custom_headerblocks as defined below.- Expected
Status []stringCode Ranges A list of status code ranges in the format of
100-101.- Interval
In intSeconds The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here:
30(normal probing) and10(fast probing). The default value is30.- Path string
The path used by the monitoring checks. Required when
protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.- Timeout
In intSeconds The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If
interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.- Tolerated
Number intOf Failures The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between
0and9. The default value is3
- port number
The port number used by the monitoring checks.
- protocol string
The protocol used by the monitoring checks, supported values are
HTTP,HTTPSandTCP.- custom
Headers TrafficManager Profile Monitor Config Custom Header[] One or more
custom_headerblocks as defined below.- expected
Status string[]Code Ranges A list of status code ranges in the format of
100-101.- interval
In numberSeconds The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here:
30(normal probing) and10(fast probing). The default value is30.- path string
The path used by the monitoring checks. Required when
protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.- timeout
In numberSeconds The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If
interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.- tolerated
Number numberOf Failures The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between
0and9. The default value is3
- port float
The port number used by the monitoring checks.
- protocol str
The protocol used by the monitoring checks, supported values are
HTTP,HTTPSandTCP.- custom_
headers List[TrafficManager Profile Monitor Config Custom Header] One or more
custom_headerblocks as defined below.- expected
Status List[str]Code Ranges A list of status code ranges in the format of
100-101.- interval_
in_ floatseconds The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here:
30(normal probing) and10(fast probing). The default value is30.- path str
The path used by the monitoring checks. Required when
protocolis set toHTTPorHTTPS- cannot be set whenprotocolis set toTCP.- timeout
In floatSeconds The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If
interval_in_secondsis set to30, thentimeout_in_secondscan be between5and10. The default value is10. Ifinterval_in_secondsis set to10, then valid values are between5and9andtimeout_in_secondsis required.- tolerated
Number floatOf Failures The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between
0and9. The default value is3
TrafficManagerProfileMonitorConfigCustomHeader
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.