1. Packages
  2. Azure Native
  3. API Docs
  4. trafficmanager
  5. Endpoint
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.trafficmanager.Endpoint

Explore with Pulumi AI

Class representing a Traffic Manager endpoint.

Uses Azure REST API version 2022-04-01.

Other available API versions: 2015-11-01, 2017-03-01, 2017-05-01, 2018-02-01, 2018-03-01, 2018-04-01, 2018-08-01, 2022-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

Endpoint-PUT-External-WithAlwaysServe

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var endpoint = new AzureNative.TrafficManager.Endpoint("endpoint", new()
    {
        AlwaysServe = AzureNative.TrafficManager.AlwaysServe.Enabled,
        EndpointLocation = "North Europe",
        EndpointName = "azsmnet7187",
        EndpointStatus = AzureNative.TrafficManager.EndpointStatus.Enabled,
        EndpointType = "ExternalEndpoints",
        Name = "azsmnet7187",
        ProfileName = "azsmnet6386",
        ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
        Target = "foobar.contoso.com",
        Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });

});
Copy
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.NewEndpoint(ctx, "endpoint", &trafficmanager.EndpointArgs{
			AlwaysServe:       pulumi.String(trafficmanager.AlwaysServeEnabled),
			EndpointLocation:  pulumi.String("North Europe"),
			EndpointName:      pulumi.String("azsmnet7187"),
			EndpointStatus:    pulumi.String(trafficmanager.EndpointStatusEnabled),
			EndpointType:      pulumi.String("ExternalEndpoints"),
			Name:              pulumi.String("azsmnet7187"),
			ProfileName:       pulumi.String("azsmnet6386"),
			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager1421"),
			Target:            pulumi.String("foobar.contoso.com"),
			Type:              pulumi.String("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.Endpoint;
import com.pulumi.azurenative.trafficmanager.EndpointArgs;
import java.util.List;
import java.util.ArrayList;
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 endpoint = new Endpoint("endpoint", EndpointArgs.builder()
            .alwaysServe("Enabled")
            .endpointLocation("North Europe")
            .endpointName("azsmnet7187")
            .endpointStatus("Enabled")
            .endpointType("ExternalEndpoints")
            .name("azsmnet7187")
            .profileName("azsmnet6386")
            .resourceGroupName("azuresdkfornetautoresttrafficmanager1421")
            .target("foobar.contoso.com")
            .type("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.trafficmanager.Endpoint("endpoint", {
    alwaysServe: azure_native.trafficmanager.AlwaysServe.Enabled,
    endpointLocation: "North Europe",
    endpointName: "azsmnet7187",
    endpointStatus: azure_native.trafficmanager.EndpointStatus.Enabled,
    endpointType: "ExternalEndpoints",
    name: "azsmnet7187",
    profileName: "azsmnet6386",
    resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
    target: "foobar.contoso.com",
    type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.trafficmanager.Endpoint("endpoint",
    always_serve=azure_native.trafficmanager.AlwaysServe.ENABLED,
    endpoint_location="North Europe",
    endpoint_name="azsmnet7187",
    endpoint_status=azure_native.trafficmanager.EndpointStatus.ENABLED,
    endpoint_type="ExternalEndpoints",
    name="azsmnet7187",
    profile_name="azsmnet6386",
    resource_group_name="azuresdkfornetautoresttrafficmanager1421",
    target="foobar.contoso.com",
    type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
Copy
resources:
  endpoint:
    type: azure-native:trafficmanager:Endpoint
    properties:
      alwaysServe: Enabled
      endpointLocation: North Europe
      endpointName: azsmnet7187
      endpointStatus: Enabled
      endpointType: ExternalEndpoints
      name: azsmnet7187
      profileName: azsmnet6386
      resourceGroupName: azuresdkfornetautoresttrafficmanager1421
      target: foobar.contoso.com
      type: Microsoft.network/TrafficManagerProfiles/ExternalEndpoints
Copy

Endpoint-PUT-External-WithCustomHeaders

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var endpoint = new AzureNative.TrafficManager.Endpoint("endpoint", new()
    {
        CustomHeaders = new[]
        {
            new AzureNative.TrafficManager.Inputs.EndpointPropertiesCustomHeadersArgs
            {
                Name = "header-1",
                Value = "value-1",
            },
            new AzureNative.TrafficManager.Inputs.EndpointPropertiesCustomHeadersArgs
            {
                Name = "header-2",
                Value = "value-2",
            },
        },
        EndpointLocation = "North Europe",
        EndpointName = "azsmnet7187",
        EndpointStatus = AzureNative.TrafficManager.EndpointStatus.Enabled,
        EndpointType = "ExternalEndpoints",
        Name = "azsmnet7187",
        ProfileName = "azsmnet6386",
        ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
        Target = "foobar.contoso.com",
        Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });

});
Copy
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.NewEndpoint(ctx, "endpoint", &trafficmanager.EndpointArgs{
			CustomHeaders: trafficmanager.EndpointPropertiesCustomHeadersArray{
				&trafficmanager.EndpointPropertiesCustomHeadersArgs{
					Name:  pulumi.String("header-1"),
					Value: pulumi.String("value-1"),
				},
				&trafficmanager.EndpointPropertiesCustomHeadersArgs{
					Name:  pulumi.String("header-2"),
					Value: pulumi.String("value-2"),
				},
			},
			EndpointLocation:  pulumi.String("North Europe"),
			EndpointName:      pulumi.String("azsmnet7187"),
			EndpointStatus:    pulumi.String(trafficmanager.EndpointStatusEnabled),
			EndpointType:      pulumi.String("ExternalEndpoints"),
			Name:              pulumi.String("azsmnet7187"),
			ProfileName:       pulumi.String("azsmnet6386"),
			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager1421"),
			Target:            pulumi.String("foobar.contoso.com"),
			Type:              pulumi.String("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.Endpoint;
import com.pulumi.azurenative.trafficmanager.EndpointArgs;
import com.pulumi.azurenative.trafficmanager.inputs.EndpointPropertiesCustomHeadersArgs;
import java.util.List;
import java.util.ArrayList;
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 endpoint = new Endpoint("endpoint", EndpointArgs.builder()
            .customHeaders(            
                EndpointPropertiesCustomHeadersArgs.builder()
                    .name("header-1")
                    .value("value-1")
                    .build(),
                EndpointPropertiesCustomHeadersArgs.builder()
                    .name("header-2")
                    .value("value-2")
                    .build())
            .endpointLocation("North Europe")
            .endpointName("azsmnet7187")
            .endpointStatus("Enabled")
            .endpointType("ExternalEndpoints")
            .name("azsmnet7187")
            .profileName("azsmnet6386")
            .resourceGroupName("azuresdkfornetautoresttrafficmanager1421")
            .target("foobar.contoso.com")
            .type("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.trafficmanager.Endpoint("endpoint", {
    customHeaders: [
        {
            name: "header-1",
            value: "value-1",
        },
        {
            name: "header-2",
            value: "value-2",
        },
    ],
    endpointLocation: "North Europe",
    endpointName: "azsmnet7187",
    endpointStatus: azure_native.trafficmanager.EndpointStatus.Enabled,
    endpointType: "ExternalEndpoints",
    name: "azsmnet7187",
    profileName: "azsmnet6386",
    resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
    target: "foobar.contoso.com",
    type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.trafficmanager.Endpoint("endpoint",
    custom_headers=[
        {
            "name": "header-1",
            "value": "value-1",
        },
        {
            "name": "header-2",
            "value": "value-2",
        },
    ],
    endpoint_location="North Europe",
    endpoint_name="azsmnet7187",
    endpoint_status=azure_native.trafficmanager.EndpointStatus.ENABLED,
    endpoint_type="ExternalEndpoints",
    name="azsmnet7187",
    profile_name="azsmnet6386",
    resource_group_name="azuresdkfornetautoresttrafficmanager1421",
    target="foobar.contoso.com",
    type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
Copy
resources:
  endpoint:
    type: azure-native:trafficmanager:Endpoint
    properties:
      customHeaders:
        - name: header-1
          value: value-1
        - name: header-2
          value: value-2
      endpointLocation: North Europe
      endpointName: azsmnet7187
      endpointStatus: Enabled
      endpointType: ExternalEndpoints
      name: azsmnet7187
      profileName: azsmnet6386
      resourceGroupName: azuresdkfornetautoresttrafficmanager1421
      target: foobar.contoso.com
      type: Microsoft.network/TrafficManagerProfiles/ExternalEndpoints
Copy

Endpoint-PUT-External-WithGeoMapping

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var endpoint = new AzureNative.TrafficManager.Endpoint("endpoint", new()
    {
        EndpointName = "My%20external%20endpoint",
        EndpointStatus = AzureNative.TrafficManager.EndpointStatus.Enabled,
        EndpointType = "ExternalEndpoints",
        GeoMapping = new[]
        {
            "GEO-AS",
            "GEO-AF",
        },
        Name = "My external endpoint",
        ProfileName = "azuresdkfornetautoresttrafficmanager8224",
        ResourceGroupName = "azuresdkfornetautoresttrafficmanager2191",
        Target = "foobar.contoso.com",
        Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });

});
Copy
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.NewEndpoint(ctx, "endpoint", &trafficmanager.EndpointArgs{
			EndpointName:   pulumi.String("My%20external%20endpoint"),
			EndpointStatus: pulumi.String(trafficmanager.EndpointStatusEnabled),
			EndpointType:   pulumi.String("ExternalEndpoints"),
			GeoMapping: pulumi.StringArray{
				pulumi.String("GEO-AS"),
				pulumi.String("GEO-AF"),
			},
			Name:              pulumi.String("My external endpoint"),
			ProfileName:       pulumi.String("azuresdkfornetautoresttrafficmanager8224"),
			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager2191"),
			Target:            pulumi.String("foobar.contoso.com"),
			Type:              pulumi.String("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.Endpoint;
import com.pulumi.azurenative.trafficmanager.EndpointArgs;
import java.util.List;
import java.util.ArrayList;
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 endpoint = new Endpoint("endpoint", EndpointArgs.builder()
            .endpointName("My%20external%20endpoint")
            .endpointStatus("Enabled")
            .endpointType("ExternalEndpoints")
            .geoMapping(            
                "GEO-AS",
                "GEO-AF")
            .name("My external endpoint")
            .profileName("azuresdkfornetautoresttrafficmanager8224")
            .resourceGroupName("azuresdkfornetautoresttrafficmanager2191")
            .target("foobar.contoso.com")
            .type("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.trafficmanager.Endpoint("endpoint", {
    endpointName: "My%20external%20endpoint",
    endpointStatus: azure_native.trafficmanager.EndpointStatus.Enabled,
    endpointType: "ExternalEndpoints",
    geoMapping: [
        "GEO-AS",
        "GEO-AF",
    ],
    name: "My external endpoint",
    profileName: "azuresdkfornetautoresttrafficmanager8224",
    resourceGroupName: "azuresdkfornetautoresttrafficmanager2191",
    target: "foobar.contoso.com",
    type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.trafficmanager.Endpoint("endpoint",
    endpoint_name="My%20external%20endpoint",
    endpoint_status=azure_native.trafficmanager.EndpointStatus.ENABLED,
    endpoint_type="ExternalEndpoints",
    geo_mapping=[
        "GEO-AS",
        "GEO-AF",
    ],
    name="My external endpoint",
    profile_name="azuresdkfornetautoresttrafficmanager8224",
    resource_group_name="azuresdkfornetautoresttrafficmanager2191",
    target="foobar.contoso.com",
    type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
Copy
resources:
  endpoint:
    type: azure-native:trafficmanager:Endpoint
    properties:
      endpointName: My%20external%20endpoint
      endpointStatus: Enabled
      endpointType: ExternalEndpoints
      geoMapping:
        - GEO-AS
        - GEO-AF
      name: My external endpoint
      profileName: azuresdkfornetautoresttrafficmanager8224
      resourceGroupName: azuresdkfornetautoresttrafficmanager2191
      target: foobar.contoso.com
      type: Microsoft.network/TrafficManagerProfiles/ExternalEndpoints
Copy

Endpoint-PUT-External-WithLocation

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var endpoint = new AzureNative.TrafficManager.Endpoint("endpoint", new()
    {
        EndpointLocation = "North Europe",
        EndpointName = "azsmnet7187",
        EndpointStatus = AzureNative.TrafficManager.EndpointStatus.Enabled,
        EndpointType = "ExternalEndpoints",
        Name = "azsmnet7187",
        ProfileName = "azsmnet6386",
        ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
        Target = "foobar.contoso.com",
        Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });

});
Copy
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.NewEndpoint(ctx, "endpoint", &trafficmanager.EndpointArgs{
			EndpointLocation:  pulumi.String("North Europe"),
			EndpointName:      pulumi.String("azsmnet7187"),
			EndpointStatus:    pulumi.String(trafficmanager.EndpointStatusEnabled),
			EndpointType:      pulumi.String("ExternalEndpoints"),
			Name:              pulumi.String("azsmnet7187"),
			ProfileName:       pulumi.String("azsmnet6386"),
			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager1421"),
			Target:            pulumi.String("foobar.contoso.com"),
			Type:              pulumi.String("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.Endpoint;
import com.pulumi.azurenative.trafficmanager.EndpointArgs;
import java.util.List;
import java.util.ArrayList;
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 endpoint = new Endpoint("endpoint", EndpointArgs.builder()
            .endpointLocation("North Europe")
            .endpointName("azsmnet7187")
            .endpointStatus("Enabled")
            .endpointType("ExternalEndpoints")
            .name("azsmnet7187")
            .profileName("azsmnet6386")
            .resourceGroupName("azuresdkfornetautoresttrafficmanager1421")
            .target("foobar.contoso.com")
            .type("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.trafficmanager.Endpoint("endpoint", {
    endpointLocation: "North Europe",
    endpointName: "azsmnet7187",
    endpointStatus: azure_native.trafficmanager.EndpointStatus.Enabled,
    endpointType: "ExternalEndpoints",
    name: "azsmnet7187",
    profileName: "azsmnet6386",
    resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
    target: "foobar.contoso.com",
    type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.trafficmanager.Endpoint("endpoint",
    endpoint_location="North Europe",
    endpoint_name="azsmnet7187",
    endpoint_status=azure_native.trafficmanager.EndpointStatus.ENABLED,
    endpoint_type="ExternalEndpoints",
    name="azsmnet7187",
    profile_name="azsmnet6386",
    resource_group_name="azuresdkfornetautoresttrafficmanager1421",
    target="foobar.contoso.com",
    type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
Copy
resources:
  endpoint:
    type: azure-native:trafficmanager:Endpoint
    properties:
      endpointLocation: North Europe
      endpointName: azsmnet7187
      endpointStatus: Enabled
      endpointType: ExternalEndpoints
      name: azsmnet7187
      profileName: azsmnet6386
      resourceGroupName: azuresdkfornetautoresttrafficmanager1421
      target: foobar.contoso.com
      type: Microsoft.network/TrafficManagerProfiles/ExternalEndpoints
Copy

Endpoint-PUT-External-WithSubnetMapping

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var endpoint = new AzureNative.TrafficManager.Endpoint("endpoint", new()
    {
        EndpointName = "My%20external%20endpoint",
        EndpointStatus = AzureNative.TrafficManager.EndpointStatus.Enabled,
        EndpointType = "ExternalEndpoints",
        Name = "My external endpoint",
        ProfileName = "azuresdkfornetautoresttrafficmanager8224",
        ResourceGroupName = "azuresdkfornetautoresttrafficmanager2191",
        Subnets = new[]
        {
            new AzureNative.TrafficManager.Inputs.EndpointPropertiesSubnetsArgs
            {
                First = "1.2.3.0",
                Scope = 24,
            },
            new AzureNative.TrafficManager.Inputs.EndpointPropertiesSubnetsArgs
            {
                First = "25.26.27.28",
                Last = "29.30.31.32",
            },
        },
        Target = "foobar.contoso.com",
        Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });

});
Copy
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.NewEndpoint(ctx, "endpoint", &trafficmanager.EndpointArgs{
			EndpointName:      pulumi.String("My%20external%20endpoint"),
			EndpointStatus:    pulumi.String(trafficmanager.EndpointStatusEnabled),
			EndpointType:      pulumi.String("ExternalEndpoints"),
			Name:              pulumi.String("My external endpoint"),
			ProfileName:       pulumi.String("azuresdkfornetautoresttrafficmanager8224"),
			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager2191"),
			Subnets: trafficmanager.EndpointPropertiesSubnetsArray{
				&trafficmanager.EndpointPropertiesSubnetsArgs{
					First: pulumi.String("1.2.3.0"),
					Scope: pulumi.Int(24),
				},
				&trafficmanager.EndpointPropertiesSubnetsArgs{
					First: pulumi.String("25.26.27.28"),
					Last:  pulumi.String("29.30.31.32"),
				},
			},
			Target: pulumi.String("foobar.contoso.com"),
			Type:   pulumi.String("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.trafficmanager.Endpoint;
import com.pulumi.azurenative.trafficmanager.EndpointArgs;
import com.pulumi.azurenative.trafficmanager.inputs.EndpointPropertiesSubnetsArgs;
import java.util.List;
import java.util.ArrayList;
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 endpoint = new Endpoint("endpoint", EndpointArgs.builder()
            .endpointName("My%20external%20endpoint")
            .endpointStatus("Enabled")
            .endpointType("ExternalEndpoints")
            .name("My external endpoint")
            .profileName("azuresdkfornetautoresttrafficmanager8224")
            .resourceGroupName("azuresdkfornetautoresttrafficmanager2191")
            .subnets(            
                EndpointPropertiesSubnetsArgs.builder()
                    .first("1.2.3.0")
                    .scope(24)
                    .build(),
                EndpointPropertiesSubnetsArgs.builder()
                    .first("25.26.27.28")
                    .last("29.30.31.32")
                    .build())
            .target("foobar.contoso.com")
            .type("Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.trafficmanager.Endpoint("endpoint", {
    endpointName: "My%20external%20endpoint",
    endpointStatus: azure_native.trafficmanager.EndpointStatus.Enabled,
    endpointType: "ExternalEndpoints",
    name: "My external endpoint",
    profileName: "azuresdkfornetautoresttrafficmanager8224",
    resourceGroupName: "azuresdkfornetautoresttrafficmanager2191",
    subnets: [
        {
            first: "1.2.3.0",
            scope: 24,
        },
        {
            first: "25.26.27.28",
            last: "29.30.31.32",
        },
    ],
    target: "foobar.contoso.com",
    type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.trafficmanager.Endpoint("endpoint",
    endpoint_name="My%20external%20endpoint",
    endpoint_status=azure_native.trafficmanager.EndpointStatus.ENABLED,
    endpoint_type="ExternalEndpoints",
    name="My external endpoint",
    profile_name="azuresdkfornetautoresttrafficmanager8224",
    resource_group_name="azuresdkfornetautoresttrafficmanager2191",
    subnets=[
        {
            "first": "1.2.3.0",
            "scope": 24,
        },
        {
            "first": "25.26.27.28",
            "last": "29.30.31.32",
        },
    ],
    target="foobar.contoso.com",
    type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
Copy
resources:
  endpoint:
    type: azure-native:trafficmanager:Endpoint
    properties:
      endpointName: My%20external%20endpoint
      endpointStatus: Enabled
      endpointType: ExternalEndpoints
      name: My external endpoint
      profileName: azuresdkfornetautoresttrafficmanager8224
      resourceGroupName: azuresdkfornetautoresttrafficmanager2191
      subnets:
        - first: 1.2.3.0
          scope: 24
        - first: 25.26.27.28
          last: 29.30.31.32
      target: foobar.contoso.com
      type: Microsoft.network/TrafficManagerProfiles/ExternalEndpoints
Copy

Create Endpoint Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
             args: EndpointInitArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Endpoint(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             endpoint_type: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             profile_name: Optional[str] = None,
             endpoint_status: Optional[Union[str, EndpointStatus]] = None,
             name: Optional[str] = None,
             always_serve: Optional[Union[str, AlwaysServe]] = None,
             endpoint_monitor_status: Optional[Union[str, EndpointMonitorStatus]] = None,
             geo_mapping: Optional[Sequence[str]] = None,
             id: Optional[str] = None,
             min_child_endpoints: Optional[float] = None,
             min_child_endpoints_i_pv4: Optional[float] = None,
             min_child_endpoints_i_pv6: Optional[float] = None,
             endpoint_name: Optional[str] = None,
             priority: Optional[float] = None,
             endpoint_location: Optional[str] = None,
             custom_headers: Optional[Sequence[EndpointPropertiesCustomHeadersArgs]] = None,
             subnets: Optional[Sequence[EndpointPropertiesSubnetsArgs]] = None,
             target: Optional[str] = None,
             target_resource_id: Optional[str] = None,
             type: Optional[str] = None,
             weight: Optional[float] = None)
func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
public Endpoint(String name, EndpointArgs args)
public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
type: azure-native:trafficmanager:Endpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EndpointInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EndpointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EndpointArgs
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 exampleendpointResourceResourceFromTrafficmanager = new AzureNative.TrafficManager.Endpoint("exampleendpointResourceResourceFromTrafficmanager", new()
{
    EndpointType = "string",
    ResourceGroupName = "string",
    ProfileName = "string",
    EndpointStatus = "string",
    Name = "string",
    AlwaysServe = "string",
    EndpointMonitorStatus = "string",
    GeoMapping = new[]
    {
        "string",
    },
    Id = "string",
    MinChildEndpoints = 0,
    MinChildEndpointsIPv4 = 0,
    MinChildEndpointsIPv6 = 0,
    EndpointName = "string",
    Priority = 0,
    EndpointLocation = "string",
    CustomHeaders = new[]
    {
        new AzureNative.TrafficManager.Inputs.EndpointPropertiesCustomHeadersArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    Subnets = new[]
    {
        new AzureNative.TrafficManager.Inputs.EndpointPropertiesSubnetsArgs
        {
            First = "string",
            Last = "string",
            Scope = 0,
        },
    },
    Target = "string",
    TargetResourceId = "string",
    Type = "string",
    Weight = 0,
});
Copy
example, err := trafficmanager.NewEndpoint(ctx, "exampleendpointResourceResourceFromTrafficmanager", &trafficmanager.EndpointArgs{
	EndpointType:          pulumi.String("string"),
	ResourceGroupName:     pulumi.String("string"),
	ProfileName:           pulumi.String("string"),
	EndpointStatus:        pulumi.String("string"),
	Name:                  pulumi.String("string"),
	AlwaysServe:           pulumi.String("string"),
	EndpointMonitorStatus: pulumi.String("string"),
	GeoMapping: pulumi.StringArray{
		pulumi.String("string"),
	},
	Id:                    pulumi.String("string"),
	MinChildEndpoints:     pulumi.Float64(0),
	MinChildEndpointsIPv4: pulumi.Float64(0),
	MinChildEndpointsIPv6: pulumi.Float64(0),
	EndpointName:          pulumi.String("string"),
	Priority:              pulumi.Float64(0),
	EndpointLocation:      pulumi.String("string"),
	CustomHeaders: trafficmanager.EndpointPropertiesCustomHeadersArray{
		&trafficmanager.EndpointPropertiesCustomHeadersArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	Subnets: trafficmanager.EndpointPropertiesSubnetsArray{
		&trafficmanager.EndpointPropertiesSubnetsArgs{
			First: pulumi.String("string"),
			Last:  pulumi.String("string"),
			Scope: pulumi.Int(0),
		},
	},
	Target:           pulumi.String("string"),
	TargetResourceId: pulumi.String("string"),
	Type:             pulumi.String("string"),
	Weight:           pulumi.Float64(0),
})
Copy
var exampleendpointResourceResourceFromTrafficmanager = new Endpoint("exampleendpointResourceResourceFromTrafficmanager", EndpointArgs.builder()
    .endpointType("string")
    .resourceGroupName("string")
    .profileName("string")
    .endpointStatus("string")
    .name("string")
    .alwaysServe("string")
    .endpointMonitorStatus("string")
    .geoMapping("string")
    .id("string")
    .minChildEndpoints(0)
    .minChildEndpointsIPv4(0)
    .minChildEndpointsIPv6(0)
    .endpointName("string")
    .priority(0)
    .endpointLocation("string")
    .customHeaders(EndpointPropertiesCustomHeadersArgs.builder()
        .name("string")
        .value("string")
        .build())
    .subnets(EndpointPropertiesSubnetsArgs.builder()
        .first("string")
        .last("string")
        .scope(0)
        .build())
    .target("string")
    .targetResourceId("string")
    .type("string")
    .weight(0)
    .build());
Copy
exampleendpoint_resource_resource_from_trafficmanager = azure_native.trafficmanager.Endpoint("exampleendpointResourceResourceFromTrafficmanager",
    endpoint_type="string",
    resource_group_name="string",
    profile_name="string",
    endpoint_status="string",
    name="string",
    always_serve="string",
    endpoint_monitor_status="string",
    geo_mapping=["string"],
    id="string",
    min_child_endpoints=0,
    min_child_endpoints_i_pv4=0,
    min_child_endpoints_i_pv6=0,
    endpoint_name="string",
    priority=0,
    endpoint_location="string",
    custom_headers=[{
        "name": "string",
        "value": "string",
    }],
    subnets=[{
        "first": "string",
        "last": "string",
        "scope": 0,
    }],
    target="string",
    target_resource_id="string",
    type="string",
    weight=0)
Copy
const exampleendpointResourceResourceFromTrafficmanager = new azure_native.trafficmanager.Endpoint("exampleendpointResourceResourceFromTrafficmanager", {
    endpointType: "string",
    resourceGroupName: "string",
    profileName: "string",
    endpointStatus: "string",
    name: "string",
    alwaysServe: "string",
    endpointMonitorStatus: "string",
    geoMapping: ["string"],
    id: "string",
    minChildEndpoints: 0,
    minChildEndpointsIPv4: 0,
    minChildEndpointsIPv6: 0,
    endpointName: "string",
    priority: 0,
    endpointLocation: "string",
    customHeaders: [{
        name: "string",
        value: "string",
    }],
    subnets: [{
        first: "string",
        last: "string",
        scope: 0,
    }],
    target: "string",
    targetResourceId: "string",
    type: "string",
    weight: 0,
});
Copy
type: azure-native:trafficmanager:Endpoint
properties:
    alwaysServe: string
    customHeaders:
        - name: string
          value: string
    endpointLocation: string
    endpointMonitorStatus: string
    endpointName: string
    endpointStatus: string
    endpointType: string
    geoMapping:
        - string
    id: string
    minChildEndpoints: 0
    minChildEndpointsIPv4: 0
    minChildEndpointsIPv6: 0
    name: string
    priority: 0
    profileName: string
    resourceGroupName: string
    subnets:
        - first: string
          last: string
          scope: 0
    target: string
    targetResourceId: string
    type: string
    weight: 0
Copy

Endpoint 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 Endpoint resource accepts the following input properties:

EndpointType
This property is required.
Changes to this property will trigger replacement.
string
The type of the Traffic Manager endpoint to be created or updated.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Traffic Manager profile.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AlwaysServe string | Pulumi.AzureNative.TrafficManager.AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
CustomHeaders List<Pulumi.AzureNative.TrafficManager.Inputs.EndpointPropertiesCustomHeaders>
List of custom headers.
EndpointLocation string
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
EndpointMonitorStatus string | Pulumi.AzureNative.TrafficManager.EndpointMonitorStatus
The monitoring status of the endpoint.
EndpointName Changes to this property will trigger replacement. string
The name of the Traffic Manager endpoint to be created or updated.
EndpointStatus string | Pulumi.AzureNative.TrafficManager.EndpointStatus
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
GeoMapping List<string>
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
MinChildEndpoints double
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
MinChildEndpointsIPv4 double
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
MinChildEndpointsIPv6 double
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
Name string
The name of the resource
Priority double
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
Subnets List<Pulumi.AzureNative.TrafficManager.Inputs.EndpointPropertiesSubnets>
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
Target string
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
TargetResourceId string
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
Type string
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Weight double
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
EndpointType
This property is required.
Changes to this property will trigger replacement.
string
The type of the Traffic Manager endpoint to be created or updated.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Traffic Manager profile.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
AlwaysServe string | AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
CustomHeaders []EndpointPropertiesCustomHeadersArgs
List of custom headers.
EndpointLocation string
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
EndpointMonitorStatus string | EndpointMonitorStatus
The monitoring status of the endpoint.
EndpointName Changes to this property will trigger replacement. string
The name of the Traffic Manager endpoint to be created or updated.
EndpointStatus string | EndpointStatus
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
GeoMapping []string
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
Id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
MinChildEndpoints float64
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
MinChildEndpointsIPv4 float64
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
MinChildEndpointsIPv6 float64
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
Name string
The name of the resource
Priority float64
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
Subnets []EndpointPropertiesSubnetsArgs
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
Target string
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
TargetResourceId string
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
Type string
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Weight float64
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
endpointType
This property is required.
Changes to this property will trigger replacement.
String
The type of the Traffic Manager endpoint to be created or updated.
profileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Traffic Manager profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
alwaysServe String | AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
customHeaders List<EndpointPropertiesCustomHeaders>
List of custom headers.
endpointLocation String
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
endpointMonitorStatus String | EndpointMonitorStatus
The monitoring status of the endpoint.
endpointName Changes to this property will trigger replacement. String
The name of the Traffic Manager endpoint to be created or updated.
endpointStatus String | EndpointStatus
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
geoMapping List<String>
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
minChildEndpoints Double
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv4 Double
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv6 Double
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
name String
The name of the resource
priority Double
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
subnets List<EndpointPropertiesSubnets>
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
target String
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
targetResourceId String
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
type String
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
weight Double
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
endpointType
This property is required.
Changes to this property will trigger replacement.
string
The type of the Traffic Manager endpoint to be created or updated.
profileName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Traffic Manager profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
alwaysServe string | AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
customHeaders EndpointPropertiesCustomHeaders[]
List of custom headers.
endpointLocation string
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
endpointMonitorStatus string | EndpointMonitorStatus
The monitoring status of the endpoint.
endpointName Changes to this property will trigger replacement. string
The name of the Traffic Manager endpoint to be created or updated.
endpointStatus string | EndpointStatus
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
geoMapping string[]
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
id string
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
minChildEndpoints number
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv4 number
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv6 number
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
name string
The name of the resource
priority number
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
subnets EndpointPropertiesSubnets[]
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
target string
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
targetResourceId string
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
type string
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
weight number
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
endpoint_type
This property is required.
Changes to this property will trigger replacement.
str
The type of the Traffic Manager endpoint to be created or updated.
profile_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Traffic Manager profile.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
always_serve str | AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
custom_headers Sequence[EndpointPropertiesCustomHeadersArgs]
List of custom headers.
endpoint_location str
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
endpoint_monitor_status str | EndpointMonitorStatus
The monitoring status of the endpoint.
endpoint_name Changes to this property will trigger replacement. str
The name of the Traffic Manager endpoint to be created or updated.
endpoint_status str | EndpointStatus
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
geo_mapping Sequence[str]
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
id str
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
min_child_endpoints float
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
min_child_endpoints_i_pv4 float
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
min_child_endpoints_i_pv6 float
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
name str
The name of the resource
priority float
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
subnets Sequence[EndpointPropertiesSubnetsArgs]
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
target str
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
target_resource_id str
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
type str
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
weight float
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
endpointType
This property is required.
Changes to this property will trigger replacement.
String
The type of the Traffic Manager endpoint to be created or updated.
profileName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Traffic Manager profile.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
alwaysServe String | "Enabled" | "Disabled"
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
customHeaders List<Property Map>
List of custom headers.
endpointLocation String
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
endpointMonitorStatus String | "CheckingEndpoint" | "Online" | "Degraded" | "Disabled" | "Inactive" | "Stopped" | "Unmonitored"
The monitoring status of the endpoint.
endpointName Changes to this property will trigger replacement. String
The name of the Traffic Manager endpoint to be created or updated.
endpointStatus String | "Enabled" | "Disabled"
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
geoMapping List<String>
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
id String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
minChildEndpoints Number
The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv4 Number
The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
minChildEndpointsIPv6 Number
The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
name String
The name of the resource
priority Number
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
subnets List<Property Map>
The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
target String
The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
targetResourceId String
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
type String
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
weight Number
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.

Outputs

All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

AlwaysServe
, AlwaysServeArgs

Enabled
Enabled
Disabled
Disabled
AlwaysServeEnabled
Enabled
AlwaysServeDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

EndpointMonitorStatus
, EndpointMonitorStatusArgs

CheckingEndpoint
CheckingEndpoint
Online
Online
Degraded
Degraded
Disabled
Disabled
Inactive
Inactive
Stopped
Stopped
Unmonitored
Unmonitored
EndpointMonitorStatusCheckingEndpoint
CheckingEndpoint
EndpointMonitorStatusOnline
Online
EndpointMonitorStatusDegraded
Degraded
EndpointMonitorStatusDisabled
Disabled
EndpointMonitorStatusInactive
Inactive
EndpointMonitorStatusStopped
Stopped
EndpointMonitorStatusUnmonitored
Unmonitored
CheckingEndpoint
CheckingEndpoint
Online
Online
Degraded
Degraded
Disabled
Disabled
Inactive
Inactive
Stopped
Stopped
Unmonitored
Unmonitored
CheckingEndpoint
CheckingEndpoint
Online
Online
Degraded
Degraded
Disabled
Disabled
Inactive
Inactive
Stopped
Stopped
Unmonitored
Unmonitored
CHECKING_ENDPOINT
CheckingEndpoint
ONLINE
Online
DEGRADED
Degraded
DISABLED
Disabled
INACTIVE
Inactive
STOPPED
Stopped
UNMONITORED
Unmonitored
"CheckingEndpoint"
CheckingEndpoint
"Online"
Online
"Degraded"
Degraded
"Disabled"
Disabled
"Inactive"
Inactive
"Stopped"
Stopped
"Unmonitored"
Unmonitored

EndpointPropertiesCustomHeaders
, EndpointPropertiesCustomHeadersArgs

Name string
Header name.
Value string
Header value.
Name string
Header name.
Value string
Header value.
name String
Header name.
value String
Header value.
name string
Header name.
value string
Header value.
name str
Header name.
value str
Header value.
name String
Header name.
value String
Header value.

EndpointPropertiesResponseCustomHeaders
, EndpointPropertiesResponseCustomHeadersArgs

Name string
Header name.
Value string
Header value.
Name string
Header name.
Value string
Header value.
name String
Header name.
value String
Header value.
name string
Header name.
value string
Header value.
name str
Header name.
value str
Header value.
name String
Header name.
value String
Header value.

EndpointPropertiesResponseSubnets
, EndpointPropertiesResponseSubnetsArgs

First string
First address in the subnet.
Last string
Last address in the subnet.
Scope int
Block size (number of leading bits in the subnet mask).
First string
First address in the subnet.
Last string
Last address in the subnet.
Scope int
Block size (number of leading bits in the subnet mask).
first String
First address in the subnet.
last String
Last address in the subnet.
scope Integer
Block size (number of leading bits in the subnet mask).
first string
First address in the subnet.
last string
Last address in the subnet.
scope number
Block size (number of leading bits in the subnet mask).
first str
First address in the subnet.
last str
Last address in the subnet.
scope int
Block size (number of leading bits in the subnet mask).
first String
First address in the subnet.
last String
Last address in the subnet.
scope Number
Block size (number of leading bits in the subnet mask).

EndpointPropertiesSubnets
, EndpointPropertiesSubnetsArgs

First string
First address in the subnet.
Last string
Last address in the subnet.
Scope int
Block size (number of leading bits in the subnet mask).
First string
First address in the subnet.
Last string
Last address in the subnet.
Scope int
Block size (number of leading bits in the subnet mask).
first String
First address in the subnet.
last String
Last address in the subnet.
scope Integer
Block size (number of leading bits in the subnet mask).
first string
First address in the subnet.
last string
Last address in the subnet.
scope number
Block size (number of leading bits in the subnet mask).
first str
First address in the subnet.
last str
Last address in the subnet.
scope int
Block size (number of leading bits in the subnet mask).
first String
First address in the subnet.
last String
Last address in the subnet.
scope Number
Block size (number of leading bits in the subnet mask).

EndpointStatus
, EndpointStatusArgs

Enabled
Enabled
Disabled
Disabled
EndpointStatusEnabled
Enabled
EndpointStatusDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:trafficmanager:Endpoint My external endpoint /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0