1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. Endpoint
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.44.1 published on Thursday, Jun 6, 2024 by Pulumi

azure-native.network.Endpoint

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.44.1 published on Thursday, Jun 6, 2024 by Pulumi

    Class representing a Traffic Manager endpoint. Azure REST API version: 2022-04-01. Prior API version in Azure Native 1.x: 2018-08-01.

    Other available API versions: 2017-03-01, 2018-02-01, 2022-04-01-preview.

    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.Network.Endpoint("endpoint", new()
        {
            AlwaysServe = AzureNative.Network.AlwaysServe.Enabled,
            EndpointLocation = "North Europe",
            EndpointName = "azsmnet7187",
            EndpointStatus = AzureNative.Network.EndpointStatus.Enabled,
            EndpointType = "ExternalEndpoints",
            Name = "azsmnet7187",
            ProfileName = "azsmnet6386",
            ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
            Target = "foobar.contoso.com",
            Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewEndpoint(ctx, "endpoint", &network.EndpointArgs{
    			AlwaysServe:       pulumi.String(network.AlwaysServeEnabled),
    			EndpointLocation:  pulumi.String("North Europe"),
    			EndpointName:      pulumi.String("azsmnet7187"),
    			EndpointStatus:    pulumi.String(network.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.Endpoint;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    endpoint = azure_native.network.Endpoint("endpoint",
        always_serve=azure_native.network.AlwaysServe.ENABLED,
        endpoint_location="North Europe",
        endpoint_name="azsmnet7187",
        endpoint_status=azure_native.network.EndpointStatus.ENABLED,
        endpoint_type="ExternalEndpoints",
        name="azsmnet7187",
        profile_name="azsmnet6386",
        resource_group_name="azuresdkfornetautoresttrafficmanager1421",
        target="foobar.contoso.com",
        type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const endpoint = new azure_native.network.Endpoint("endpoint", {
        alwaysServe: azure_native.network.AlwaysServe.Enabled,
        endpointLocation: "North Europe",
        endpointName: "azsmnet7187",
        endpointStatus: azure_native.network.EndpointStatus.Enabled,
        endpointType: "ExternalEndpoints",
        name: "azsmnet7187",
        profileName: "azsmnet6386",
        resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
        target: "foobar.contoso.com",
        type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });
    
    resources:
      endpoint:
        type: azure-native:network: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
    

    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.Network.Endpoint("endpoint", new()
        {
            CustomHeaders = new[]
            {
                new AzureNative.Network.Inputs.EndpointPropertiesCustomHeadersArgs
                {
                    Name = "header-1",
                    Value = "value-1",
                },
                new AzureNative.Network.Inputs.EndpointPropertiesCustomHeadersArgs
                {
                    Name = "header-2",
                    Value = "value-2",
                },
            },
            EndpointLocation = "North Europe",
            EndpointName = "azsmnet7187",
            EndpointStatus = AzureNative.Network.EndpointStatus.Enabled,
            EndpointType = "ExternalEndpoints",
            Name = "azsmnet7187",
            ProfileName = "azsmnet6386",
            ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
            Target = "foobar.contoso.com",
            Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewEndpoint(ctx, "endpoint", &network.EndpointArgs{
    			CustomHeaders: network.EndpointPropertiesCustomHeadersArray{
    				&network.EndpointPropertiesCustomHeadersArgs{
    					Name:  pulumi.String("header-1"),
    					Value: pulumi.String("value-1"),
    				},
    				&network.EndpointPropertiesCustomHeadersArgs{
    					Name:  pulumi.String("header-2"),
    					Value: pulumi.String("value-2"),
    				},
    			},
    			EndpointLocation:  pulumi.String("North Europe"),
    			EndpointName:      pulumi.String("azsmnet7187"),
    			EndpointStatus:    pulumi.String(network.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.Endpoint;
    import com.pulumi.azurenative.network.EndpointArgs;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    endpoint = azure_native.network.Endpoint("endpoint",
        custom_headers=[
            azure_native.network.EndpointPropertiesCustomHeadersArgs(
                name="header-1",
                value="value-1",
            ),
            azure_native.network.EndpointPropertiesCustomHeadersArgs(
                name="header-2",
                value="value-2",
            ),
        ],
        endpoint_location="North Europe",
        endpoint_name="azsmnet7187",
        endpoint_status=azure_native.network.EndpointStatus.ENABLED,
        endpoint_type="ExternalEndpoints",
        name="azsmnet7187",
        profile_name="azsmnet6386",
        resource_group_name="azuresdkfornetautoresttrafficmanager1421",
        target="foobar.contoso.com",
        type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const endpoint = new azure_native.network.Endpoint("endpoint", {
        customHeaders: [
            {
                name: "header-1",
                value: "value-1",
            },
            {
                name: "header-2",
                value: "value-2",
            },
        ],
        endpointLocation: "North Europe",
        endpointName: "azsmnet7187",
        endpointStatus: azure_native.network.EndpointStatus.Enabled,
        endpointType: "ExternalEndpoints",
        name: "azsmnet7187",
        profileName: "azsmnet6386",
        resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
        target: "foobar.contoso.com",
        type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });
    
    resources:
      endpoint:
        type: azure-native:network: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
    

    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.Network.Endpoint("endpoint", new()
        {
            EndpointName = "My%20external%20endpoint",
            EndpointStatus = AzureNative.Network.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",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewEndpoint(ctx, "endpoint", &network.EndpointArgs{
    			EndpointName:   pulumi.String("My%20external%20endpoint"),
    			EndpointStatus: pulumi.String(network.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.Endpoint;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    endpoint = azure_native.network.Endpoint("endpoint",
        endpoint_name="My%20external%20endpoint",
        endpoint_status=azure_native.network.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")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const endpoint = new azure_native.network.Endpoint("endpoint", {
        endpointName: "My%20external%20endpoint",
        endpointStatus: azure_native.network.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",
    });
    
    resources:
      endpoint:
        type: azure-native:network: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
    

    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.Network.Endpoint("endpoint", new()
        {
            EndpointLocation = "North Europe",
            EndpointName = "azsmnet7187",
            EndpointStatus = AzureNative.Network.EndpointStatus.Enabled,
            EndpointType = "ExternalEndpoints",
            Name = "azsmnet7187",
            ProfileName = "azsmnet6386",
            ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
            Target = "foobar.contoso.com",
            Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewEndpoint(ctx, "endpoint", &network.EndpointArgs{
    			EndpointLocation:  pulumi.String("North Europe"),
    			EndpointName:      pulumi.String("azsmnet7187"),
    			EndpointStatus:    pulumi.String(network.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.Endpoint;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    endpoint = azure_native.network.Endpoint("endpoint",
        endpoint_location="North Europe",
        endpoint_name="azsmnet7187",
        endpoint_status=azure_native.network.EndpointStatus.ENABLED,
        endpoint_type="ExternalEndpoints",
        name="azsmnet7187",
        profile_name="azsmnet6386",
        resource_group_name="azuresdkfornetautoresttrafficmanager1421",
        target="foobar.contoso.com",
        type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const endpoint = new azure_native.network.Endpoint("endpoint", {
        endpointLocation: "North Europe",
        endpointName: "azsmnet7187",
        endpointStatus: azure_native.network.EndpointStatus.Enabled,
        endpointType: "ExternalEndpoints",
        name: "azsmnet7187",
        profileName: "azsmnet6386",
        resourceGroupName: "azuresdkfornetautoresttrafficmanager1421",
        target: "foobar.contoso.com",
        type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
    });
    
    resources:
      endpoint:
        type: azure-native:network: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
    

    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.Network.Endpoint("endpoint", new()
        {
            EndpointName = "My%20external%20endpoint",
            EndpointStatus = AzureNative.Network.EndpointStatus.Enabled,
            EndpointType = "ExternalEndpoints",
            Name = "My external endpoint",
            ProfileName = "azuresdkfornetautoresttrafficmanager8224",
            ResourceGroupName = "azuresdkfornetautoresttrafficmanager2191",
            Subnets = new[]
            {
                new AzureNative.Network.Inputs.EndpointPropertiesSubnetsArgs
                {
                    First = "1.2.3.0",
                    Scope = 24,
                },
                new AzureNative.Network.Inputs.EndpointPropertiesSubnetsArgs
                {
                    First = "25.26.27.28",
                    Last = "29.30.31.32",
                },
            },
            Target = "foobar.contoso.com",
            Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/network/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewEndpoint(ctx, "endpoint", &network.EndpointArgs{
    			EndpointName:      pulumi.String("My%20external%20endpoint"),
    			EndpointStatus:    pulumi.String(network.EndpointStatusEnabled),
    			EndpointType:      pulumi.String("ExternalEndpoints"),
    			Name:              pulumi.String("My external endpoint"),
    			ProfileName:       pulumi.String("azuresdkfornetautoresttrafficmanager8224"),
    			ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager2191"),
    			Subnets: network.EndpointPropertiesSubnetsArray{
    				&network.EndpointPropertiesSubnetsArgs{
    					First: pulumi.String("1.2.3.0"),
    					Scope: pulumi.Int(24),
    				},
    				&network.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.Endpoint;
    import com.pulumi.azurenative.network.EndpointArgs;
    import com.pulumi.azurenative.network.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    endpoint = azure_native.network.Endpoint("endpoint",
        endpoint_name="My%20external%20endpoint",
        endpoint_status=azure_native.network.EndpointStatus.ENABLED,
        endpoint_type="ExternalEndpoints",
        name="My external endpoint",
        profile_name="azuresdkfornetautoresttrafficmanager8224",
        resource_group_name="azuresdkfornetautoresttrafficmanager2191",
        subnets=[
            azure_native.network.EndpointPropertiesSubnetsArgs(
                first="1.2.3.0",
                scope=24,
            ),
            azure_native.network.EndpointPropertiesSubnetsArgs(
                first="25.26.27.28",
                last="29.30.31.32",
            ),
        ],
        target="foobar.contoso.com",
        type="Microsoft.network/TrafficManagerProfiles/ExternalEndpoints")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const endpoint = new azure_native.network.Endpoint("endpoint", {
        endpointName: "My%20external%20endpoint",
        endpointStatus: azure_native.network.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",
    });
    
    resources:
      endpoint:
        type: azure-native:network: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
    

    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:network:Endpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args EndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var exampleendpointResourceResourceFromNetwork = new AzureNative.Network.Endpoint("exampleendpointResourceResourceFromNetwork", 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.Network.Inputs.EndpointPropertiesCustomHeadersArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        Subnets = new[]
        {
            new AzureNative.Network.Inputs.EndpointPropertiesSubnetsArgs
            {
                First = "string",
                Last = "string",
                Scope = 0,
            },
        },
        Target = "string",
        TargetResourceId = "string",
        Type = "string",
        Weight = 0,
    });
    
    example, err := network.NewEndpoint(ctx, "exampleendpointResourceResourceFromNetwork", &network.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: network.EndpointPropertiesCustomHeadersArray{
    &network.EndpointPropertiesCustomHeadersArgs{
    Name: pulumi.String("string"),
    Value: pulumi.String("string"),
    },
    },
    Subnets: network.EndpointPropertiesSubnetsArray{
    &network.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),
    })
    
    var exampleendpointResourceResourceFromNetwork = new Endpoint("exampleendpointResourceResourceFromNetwork", 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());
    
    exampleendpoint_resource_resource_from_network = azure_native.network.Endpoint("exampleendpointResourceResourceFromNetwork",
        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=[azure_native.network.EndpointPropertiesCustomHeadersArgs(
            name="string",
            value="string",
        )],
        subnets=[azure_native.network.EndpointPropertiesSubnetsArgs(
            first="string",
            last="string",
            scope=0,
        )],
        target="string",
        target_resource_id="string",
        type="string",
        weight=0)
    
    const exampleendpointResourceResourceFromNetwork = new azure_native.network.Endpoint("exampleendpointResourceResourceFromNetwork", {
        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,
    });
    
    type: azure-native:network: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
    

    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

    The Endpoint resource accepts the following input properties:

    EndpointType string
    The type of the Traffic Manager endpoint to be created or updated.
    ProfileName string
    The name of the Traffic Manager profile.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AlwaysServe string | Pulumi.AzureNative.Network.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.Network.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.Network.EndpointMonitorStatus
    The monitoring status of the endpoint.
    EndpointName string
    The name of the Traffic Manager endpoint to be created or updated.
    EndpointStatus string | Pulumi.AzureNative.Network.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.Network.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 string
    The type of the Traffic Manager endpoint to be created or updated.
    ProfileName string
    The name of the Traffic Manager profile.
    ResourceGroupName 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 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 String
    The type of the Traffic Manager endpoint to be created or updated.
    profileName String
    The name of the Traffic Manager profile.
    resourceGroupName 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 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 string
    The type of the Traffic Manager endpoint to be created or updated.
    profileName string
    The name of the Traffic Manager profile.
    resourceGroupName 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 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 str
    The type of the Traffic Manager endpoint to be created or updated.
    profile_name str
    The name of the Traffic Manager profile.
    resource_group_name 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 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 String
    The type of the Traffic Manager endpoint to be created or updated.
    profileName String
    The name of the Traffic Manager profile.
    resourceGroupName 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 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed 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:network:Endpoint My external endpoint /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.44.1 published on Thursday, Jun 6, 2024 by Pulumi