trafficmanager

package
v5.74.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGeographicalLocationArgs

type GetGeographicalLocationArgs struct {
	// Specifies the name of the Location, for example `World`, `Europe` or `Germany`.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getGeographicalLocation.

type GetGeographicalLocationOutputArgs

type GetGeographicalLocationOutputArgs struct {
	// Specifies the name of the Location, for example `World`, `Europe` or `Germany`.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getGeographicalLocation.

func (GetGeographicalLocationOutputArgs) ElementType

type GetGeographicalLocationResult

type GetGeographicalLocationResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getGeographicalLocation.

func GetGeographicalLocation deprecated

func GetGeographicalLocation(ctx *pulumi.Context, args *GetGeographicalLocationArgs, opts ...pulumi.InvokeOption) (*GetGeographicalLocationResult, error)

Use this data source to access the ID of a specified Traffic Manager Geographical Location within the Geographical Hierarchy.

## Example Usage

### World)

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := network.GetTrafficManager(ctx, &network.GetTrafficManagerArgs{
			Name: "World",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("locationCode", example.Id)
		return nil
	})
}

```

Deprecated: azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager

type GetGeographicalLocationResultOutput

type GetGeographicalLocationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGeographicalLocation.

func (GetGeographicalLocationResultOutput) ElementType

func (GetGeographicalLocationResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGeographicalLocationResultOutput) Name

func (GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutput

func (o GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutput() GetGeographicalLocationResultOutput

func (GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutputWithContext

func (o GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutputWithContext(ctx context.Context) GetGeographicalLocationResultOutput

type Profile deprecated

type Profile struct {
	pulumi.CustomResourceState

	// This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below.
	DnsConfig ProfileDnsConfigOutput `pulumi:"dnsConfig"`
	// The FQDN of the created Profile.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	//
	// > **NOTE:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`.
	MaxReturn pulumi.IntPtrOutput `pulumi:"maxReturn"`
	// This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below.
	MonitorConfig ProfileMonitorConfigOutput `pulumi:"monitorConfig"`
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringOutput `pulumi:"profileStatus"`
	// The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`.
	TrafficRoutingMethod pulumi.StringOutput `pulumi:"trafficRoutingMethod"`
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrOutput `pulumi:"trafficViewEnabled"`
}

Manages a Traffic Manager Profile to which multiple endpoints can be attached.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
			Keepers: pulumi.StringMap{
				"azi_id": pulumi.String("1"),
			},
			ByteLength: pulumi.Int(8),
		})
		if err != nil {
			return err
		}
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("trafficmanagerProfile"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = network.NewTrafficManagerProfile(ctx, "example", &network.TrafficManagerProfileArgs{
			Name:                 server.Hex,
			ResourceGroupName:    example.Name,
			TrafficRoutingMethod: pulumi.String("Weighted"),
			DnsConfig: &network.TrafficManagerProfileDnsConfigArgs{
				RelativeName: server.Hex,
				Ttl:          pulumi.Int(100),
			},
			MonitorConfig: &network.TrafficManagerProfileMonitorConfigArgs{
				Protocol:                  pulumi.String("HTTP"),
				Port:                      pulumi.Int(80),
				Path:                      pulumi.String("/"),
				IntervalInSeconds:         pulumi.Int(30),
				TimeoutInSeconds:          pulumi.Int(9),
				ToleratedNumberOfFailures: pulumi.Int(3),
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Traffic Manager Profiles can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:trafficmanager/profile:Profile exampleProfile /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1 ```

Deprecated: azure.trafficmanager.Profile has been deprecated in favor of azure.network.TrafficManagerProfile

func GetProfile

func GetProfile(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error)

GetProfile gets an existing Profile resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProfile

func NewProfile(ctx *pulumi.Context,
	name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error)

NewProfile registers a new resource with the given unique name, arguments, and options.

func (*Profile) ElementType

func (*Profile) ElementType() reflect.Type

func (*Profile) ToProfileOutput

func (i *Profile) ToProfileOutput() ProfileOutput

func (*Profile) ToProfileOutputWithContext

func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

type ProfileArgs

type ProfileArgs struct {
	// This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below.
	DnsConfig ProfileDnsConfigInput
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	//
	// > **NOTE:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`.
	MaxReturn pulumi.IntPtrInput
	// This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below.
	MonitorConfig ProfileMonitorConfigInput
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringPtrInput
	// The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`.
	TrafficRoutingMethod pulumi.StringInput
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrInput
}

The set of arguments for constructing a Profile resource.

func (ProfileArgs) ElementType

func (ProfileArgs) ElementType() reflect.Type

type ProfileArray

type ProfileArray []ProfileInput

func (ProfileArray) ElementType

func (ProfileArray) ElementType() reflect.Type

func (ProfileArray) ToProfileArrayOutput

func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArray) ToProfileArrayOutputWithContext

func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileArrayInput

type ProfileArrayInput interface {
	pulumi.Input

	ToProfileArrayOutput() ProfileArrayOutput
	ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput
}

ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values. You can construct a concrete instance of `ProfileArrayInput` via:

ProfileArray{ ProfileArgs{...} }

type ProfileArrayOutput

type ProfileArrayOutput struct{ *pulumi.OutputState }

func (ProfileArrayOutput) ElementType

func (ProfileArrayOutput) ElementType() reflect.Type

func (ProfileArrayOutput) Index

func (ProfileArrayOutput) ToProfileArrayOutput

func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArrayOutput) ToProfileArrayOutputWithContext

func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileDnsConfig

type ProfileDnsConfig struct {
	// 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.
	RelativeName string `pulumi:"relativeName"`
	// The TTL value of the Profile used by Local DNS resolvers and clients.
	Ttl int `pulumi:"ttl"`
}

type ProfileDnsConfigArgs

type ProfileDnsConfigArgs struct {
	// 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.
	RelativeName pulumi.StringInput `pulumi:"relativeName"`
	// The TTL value of the Profile used by Local DNS resolvers and clients.
	Ttl pulumi.IntInput `pulumi:"ttl"`
}

func (ProfileDnsConfigArgs) ElementType

func (ProfileDnsConfigArgs) ElementType() reflect.Type

func (ProfileDnsConfigArgs) ToProfileDnsConfigOutput

func (i ProfileDnsConfigArgs) ToProfileDnsConfigOutput() ProfileDnsConfigOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigOutputWithContext

func (i ProfileDnsConfigArgs) ToProfileDnsConfigOutputWithContext(ctx context.Context) ProfileDnsConfigOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutput

func (i ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutputWithContext

func (i ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

type ProfileDnsConfigInput

type ProfileDnsConfigInput interface {
	pulumi.Input

	ToProfileDnsConfigOutput() ProfileDnsConfigOutput
	ToProfileDnsConfigOutputWithContext(context.Context) ProfileDnsConfigOutput
}

ProfileDnsConfigInput is an input type that accepts ProfileDnsConfigArgs and ProfileDnsConfigOutput values. You can construct a concrete instance of `ProfileDnsConfigInput` via:

ProfileDnsConfigArgs{...}

type ProfileDnsConfigOutput

type ProfileDnsConfigOutput struct{ *pulumi.OutputState }

func (ProfileDnsConfigOutput) ElementType

func (ProfileDnsConfigOutput) ElementType() reflect.Type

func (ProfileDnsConfigOutput) RelativeName

func (o ProfileDnsConfigOutput) RelativeName() pulumi.StringOutput

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.

func (ProfileDnsConfigOutput) ToProfileDnsConfigOutput

func (o ProfileDnsConfigOutput) ToProfileDnsConfigOutput() ProfileDnsConfigOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigOutputWithContext

func (o ProfileDnsConfigOutput) ToProfileDnsConfigOutputWithContext(ctx context.Context) ProfileDnsConfigOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutput

func (o ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutputWithContext

func (o ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

func (ProfileDnsConfigOutput) Ttl

The TTL value of the Profile used by Local DNS resolvers and clients.

type ProfileDnsConfigPtrInput

type ProfileDnsConfigPtrInput interface {
	pulumi.Input

	ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput
	ToProfileDnsConfigPtrOutputWithContext(context.Context) ProfileDnsConfigPtrOutput
}

ProfileDnsConfigPtrInput is an input type that accepts ProfileDnsConfigArgs, ProfileDnsConfigPtr and ProfileDnsConfigPtrOutput values. You can construct a concrete instance of `ProfileDnsConfigPtrInput` via:

        ProfileDnsConfigArgs{...}

or:

        nil

type ProfileDnsConfigPtrOutput

type ProfileDnsConfigPtrOutput struct{ *pulumi.OutputState }

func (ProfileDnsConfigPtrOutput) Elem

func (ProfileDnsConfigPtrOutput) ElementType

func (ProfileDnsConfigPtrOutput) ElementType() reflect.Type

func (ProfileDnsConfigPtrOutput) RelativeName

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.

func (ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutput

func (o ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutputWithContext

func (o ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

func (ProfileDnsConfigPtrOutput) Ttl

The TTL value of the Profile used by Local DNS resolvers and clients.

type ProfileInput

type ProfileInput interface {
	pulumi.Input

	ToProfileOutput() ProfileOutput
	ToProfileOutputWithContext(ctx context.Context) ProfileOutput
}

type ProfileMap

type ProfileMap map[string]ProfileInput

func (ProfileMap) ElementType

func (ProfileMap) ElementType() reflect.Type

func (ProfileMap) ToProfileMapOutput

func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput

func (ProfileMap) ToProfileMapOutputWithContext

func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMapInput

type ProfileMapInput interface {
	pulumi.Input

	ToProfileMapOutput() ProfileMapOutput
	ToProfileMapOutputWithContext(context.Context) ProfileMapOutput
}

ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values. You can construct a concrete instance of `ProfileMapInput` via:

ProfileMap{ "key": ProfileArgs{...} }

type ProfileMapOutput

type ProfileMapOutput struct{ *pulumi.OutputState }

func (ProfileMapOutput) ElementType

func (ProfileMapOutput) ElementType() reflect.Type

func (ProfileMapOutput) MapIndex

func (ProfileMapOutput) ToProfileMapOutput

func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput

func (ProfileMapOutput) ToProfileMapOutputWithContext

func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMonitorConfig

type ProfileMonitorConfig struct {
	// One or more `customHeader` blocks as defined below.
	CustomHeaders []ProfileMonitorConfigCustomHeader `pulumi:"customHeaders"`
	// A list of status code ranges in the format of `100-101`.
	ExpectedStatusCodeRanges []string `pulumi:"expectedStatusCodeRanges"`
	// The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.
	IntervalInSeconds *int `pulumi:"intervalInSeconds"`
	// The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.
	Path *string `pulumi:"path"`
	// The port number used by the monitoring checks.
	Port int `pulumi:"port"`
	// The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.
	Protocol string `pulumi:"protocol"`
	// 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 `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.
	TimeoutInSeconds *int `pulumi:"timeoutInSeconds"`
	// The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`
	ToleratedNumberOfFailures *int `pulumi:"toleratedNumberOfFailures"`
}

type ProfileMonitorConfigArgs

type ProfileMonitorConfigArgs struct {
	// One or more `customHeader` blocks as defined below.
	CustomHeaders ProfileMonitorConfigCustomHeaderArrayInput `pulumi:"customHeaders"`
	// A list of status code ranges in the format of `100-101`.
	ExpectedStatusCodeRanges pulumi.StringArrayInput `pulumi:"expectedStatusCodeRanges"`
	// The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.
	IntervalInSeconds pulumi.IntPtrInput `pulumi:"intervalInSeconds"`
	// The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// The port number used by the monitoring checks.
	Port pulumi.IntInput `pulumi:"port"`
	// The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// 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 `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.
	TimeoutInSeconds pulumi.IntPtrInput `pulumi:"timeoutInSeconds"`
	// The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`
	ToleratedNumberOfFailures pulumi.IntPtrInput `pulumi:"toleratedNumberOfFailures"`
}

func (ProfileMonitorConfigArgs) ElementType

func (ProfileMonitorConfigArgs) ElementType() reflect.Type

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigOutput

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigOutputWithContext

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigOutputWithContext(ctx context.Context) ProfileMonitorConfigOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutput

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutputWithContext

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

type ProfileMonitorConfigCustomHeader

type ProfileMonitorConfigCustomHeader struct {
	// The name of the custom header.
	Name string `pulumi:"name"`
	// The value of custom header. Applicable for HTTP and HTTPS protocol.
	Value string `pulumi:"value"`
}

type ProfileMonitorConfigCustomHeaderArgs

type ProfileMonitorConfigCustomHeaderArgs struct {
	// The name of the custom header.
	Name pulumi.StringInput `pulumi:"name"`
	// The value of custom header. Applicable for HTTP and HTTPS protocol.
	Value pulumi.StringInput `pulumi:"value"`
}

func (ProfileMonitorConfigCustomHeaderArgs) ElementType

func (ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutput

func (i ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutputWithContext

func (i ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderOutput

type ProfileMonitorConfigCustomHeaderArray

type ProfileMonitorConfigCustomHeaderArray []ProfileMonitorConfigCustomHeaderInput

func (ProfileMonitorConfigCustomHeaderArray) ElementType

func (ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutput

func (i ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput

func (ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext

func (i ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderArrayInput

type ProfileMonitorConfigCustomHeaderArrayInput interface {
	pulumi.Input

	ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput
	ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(context.Context) ProfileMonitorConfigCustomHeaderArrayOutput
}

ProfileMonitorConfigCustomHeaderArrayInput is an input type that accepts ProfileMonitorConfigCustomHeaderArray and ProfileMonitorConfigCustomHeaderArrayOutput values. You can construct a concrete instance of `ProfileMonitorConfigCustomHeaderArrayInput` via:

ProfileMonitorConfigCustomHeaderArray{ ProfileMonitorConfigCustomHeaderArgs{...} }

type ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderArrayOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigCustomHeaderArrayOutput) ElementType

func (ProfileMonitorConfigCustomHeaderArrayOutput) Index

func (ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutput

func (o ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput

func (ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext

func (o ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderInput

type ProfileMonitorConfigCustomHeaderInput interface {
	pulumi.Input

	ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput
	ToProfileMonitorConfigCustomHeaderOutputWithContext(context.Context) ProfileMonitorConfigCustomHeaderOutput
}

ProfileMonitorConfigCustomHeaderInput is an input type that accepts ProfileMonitorConfigCustomHeaderArgs and ProfileMonitorConfigCustomHeaderOutput values. You can construct a concrete instance of `ProfileMonitorConfigCustomHeaderInput` via:

ProfileMonitorConfigCustomHeaderArgs{...}

type ProfileMonitorConfigCustomHeaderOutput

type ProfileMonitorConfigCustomHeaderOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigCustomHeaderOutput) ElementType

func (ProfileMonitorConfigCustomHeaderOutput) Name

The name of the custom header.

func (ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutput

func (o ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutputWithContext

func (o ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderOutput) Value

The value of custom header. Applicable for HTTP and HTTPS protocol.

type ProfileMonitorConfigInput

type ProfileMonitorConfigInput interface {
	pulumi.Input

	ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput
	ToProfileMonitorConfigOutputWithContext(context.Context) ProfileMonitorConfigOutput
}

ProfileMonitorConfigInput is an input type that accepts ProfileMonitorConfigArgs and ProfileMonitorConfigOutput values. You can construct a concrete instance of `ProfileMonitorConfigInput` via:

ProfileMonitorConfigArgs{...}

type ProfileMonitorConfigOutput

type ProfileMonitorConfigOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigOutput) CustomHeaders

One or more `customHeader` blocks as defined below.

func (ProfileMonitorConfigOutput) ElementType

func (ProfileMonitorConfigOutput) ElementType() reflect.Type

func (ProfileMonitorConfigOutput) ExpectedStatusCodeRanges

func (o ProfileMonitorConfigOutput) ExpectedStatusCodeRanges() pulumi.StringArrayOutput

A list of status code ranges in the format of `100-101`.

func (ProfileMonitorConfigOutput) IntervalInSeconds

func (o ProfileMonitorConfigOutput) IntervalInSeconds() pulumi.IntPtrOutput

The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.

func (ProfileMonitorConfigOutput) Path

The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.

func (ProfileMonitorConfigOutput) Port

The port number used by the monitoring checks.

func (ProfileMonitorConfigOutput) Protocol

The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.

func (ProfileMonitorConfigOutput) TimeoutInSeconds

func (o ProfileMonitorConfigOutput) TimeoutInSeconds() pulumi.IntPtrOutput

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 `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigOutput

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigOutputWithContext

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigOutputWithContext(ctx context.Context) ProfileMonitorConfigOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutput

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutputWithContext

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigOutput) ToleratedNumberOfFailures

func (o ProfileMonitorConfigOutput) ToleratedNumberOfFailures() pulumi.IntPtrOutput

The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`

type ProfileMonitorConfigPtrInput

type ProfileMonitorConfigPtrInput interface {
	pulumi.Input

	ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput
	ToProfileMonitorConfigPtrOutputWithContext(context.Context) ProfileMonitorConfigPtrOutput
}

ProfileMonitorConfigPtrInput is an input type that accepts ProfileMonitorConfigArgs, ProfileMonitorConfigPtr and ProfileMonitorConfigPtrOutput values. You can construct a concrete instance of `ProfileMonitorConfigPtrInput` via:

        ProfileMonitorConfigArgs{...}

or:

        nil

type ProfileMonitorConfigPtrOutput

type ProfileMonitorConfigPtrOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigPtrOutput) CustomHeaders

One or more `customHeader` blocks as defined below.

func (ProfileMonitorConfigPtrOutput) Elem

func (ProfileMonitorConfigPtrOutput) ElementType

func (ProfileMonitorConfigPtrOutput) ExpectedStatusCodeRanges

func (o ProfileMonitorConfigPtrOutput) ExpectedStatusCodeRanges() pulumi.StringArrayOutput

A list of status code ranges in the format of `100-101`.

func (ProfileMonitorConfigPtrOutput) IntervalInSeconds

func (o ProfileMonitorConfigPtrOutput) IntervalInSeconds() pulumi.IntPtrOutput

The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.

func (ProfileMonitorConfigPtrOutput) Path

The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.

func (ProfileMonitorConfigPtrOutput) Port

The port number used by the monitoring checks.

func (ProfileMonitorConfigPtrOutput) Protocol

The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.

func (ProfileMonitorConfigPtrOutput) TimeoutInSeconds

func (o ProfileMonitorConfigPtrOutput) TimeoutInSeconds() pulumi.IntPtrOutput

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 `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.

func (ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutput

func (o ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutputWithContext

func (o ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigPtrOutput) ToleratedNumberOfFailures

func (o ProfileMonitorConfigPtrOutput) ToleratedNumberOfFailures() pulumi.IntPtrOutput

The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`

type ProfileOutput

type ProfileOutput struct{ *pulumi.OutputState }

func (ProfileOutput) DnsConfig added in v5.5.0

func (o ProfileOutput) DnsConfig() ProfileDnsConfigOutput

This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below.

func (ProfileOutput) ElementType

func (ProfileOutput) ElementType() reflect.Type

func (ProfileOutput) Fqdn added in v5.5.0

The FQDN of the created Profile.

func (ProfileOutput) MaxReturn added in v5.5.0

func (o ProfileOutput) MaxReturn() pulumi.IntPtrOutput

The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.

> **NOTE:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`.

func (ProfileOutput) MonitorConfig added in v5.5.0

func (o ProfileOutput) MonitorConfig() ProfileMonitorConfigOutput

This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below.

func (ProfileOutput) Name added in v5.5.0

The name of the Traffic Manager profile. Changing this forces a new resource to be created.

func (ProfileOutput) ProfileStatus added in v5.5.0

func (o ProfileOutput) ProfileStatus() pulumi.StringOutput

The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.

func (ProfileOutput) ResourceGroupName added in v5.5.0

func (o ProfileOutput) ResourceGroupName() pulumi.StringOutput

The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.

func (ProfileOutput) Tags added in v5.5.0

A mapping of tags to assign to the resource.

func (ProfileOutput) ToProfileOutput

func (o ProfileOutput) ToProfileOutput() ProfileOutput

func (ProfileOutput) ToProfileOutputWithContext

func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

func (ProfileOutput) TrafficRoutingMethod added in v5.5.0

func (o ProfileOutput) TrafficRoutingMethod() pulumi.StringOutput

Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`.

func (ProfileOutput) TrafficViewEnabled added in v5.5.0

func (o ProfileOutput) TrafficViewEnabled() pulumi.BoolPtrOutput

Indicates whether Traffic View is enabled for the Traffic Manager profile.

type ProfileState

type ProfileState struct {
	// This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below.
	DnsConfig ProfileDnsConfigPtrInput
	// The FQDN of the created Profile.
	Fqdn pulumi.StringPtrInput
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	//
	// > **NOTE:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`.
	MaxReturn pulumi.IntPtrInput
	// This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below.
	MonitorConfig ProfileMonitorConfigPtrInput
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringPtrInput
	// The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`.
	TrafficRoutingMethod pulumi.StringPtrInput
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrInput
}

func (ProfileState) ElementType

func (ProfileState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL