azure-native.network.Endpoint
Explore with Pulumi AI
Class representing a Traffic Manager endpoint. API Version: 2018-08-01.
Example Usage
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 = "Enabled",
EndpointType = "ExternalEndpoints",
Name = "azsmnet7187",
ProfileName = "azsmnet6386",
ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
Target = "foobar.contoso.com",
Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"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.EndpointPropertiesCustomHeadersArgs{
{
Name: pulumi.String("header-1"),
Value: pulumi.String("value-1"),
},
{
Name: pulumi.String("header-2"),
Value: pulumi.String("value-2"),
},
},
EndpointLocation: pulumi.String("North Europe"),
EndpointName: pulumi.String("azsmnet7187"),
EndpointStatus: pulumi.String("Enabled"),
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()
.customHeaders(
Map.ofEntries(
Map.entry("name", "header-1"),
Map.entry("value", "value-1")
),
Map.ofEntries(
Map.entry("name", "header-2"),
Map.entry("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")
.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="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: "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 = "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 (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"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("Enabled"),
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="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: "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 = "Enabled",
EndpointType = "ExternalEndpoints",
Name = "azsmnet7187",
ProfileName = "azsmnet6386",
ResourceGroupName = "azuresdkfornetautoresttrafficmanager1421",
Target = "foobar.contoso.com",
Type = "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"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("Enabled"),
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="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: "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 = "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 (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"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("Enabled"),
EndpointType: pulumi.String("ExternalEndpoints"),
Name: pulumi.String("My external endpoint"),
ProfileName: pulumi.String("azuresdkfornetautoresttrafficmanager8224"),
ResourceGroupName: pulumi.String("azuresdkfornetautoresttrafficmanager2191"),
Subnets: []network.EndpointPropertiesSubnetsArgs{
{
First: pulumi.String("1.2.3.0"),
Scope: pulumi.Int(24),
},
{
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 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(
Map.ofEntries(
Map.entry("first", "1.2.3.0"),
Map.entry("scope", 24)
),
Map.ofEntries(
Map.entry("first", "25.26.27.28"),
Map.entry("last", "29.30.31.32")
))
.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="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: "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,
min_child_endpoints_i_pv6: Optional[float] = None,
priority: Optional[float] = None,
endpoint_name: Optional[str] = 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,
custom_headers: Optional[Sequence[EndpointPropertiesCustomHeadersArgs]] = None,
name: Optional[str] = None,
endpoint_status: Optional[Union[str, EndpointStatus]] = None,
endpoint_monitor_status: Optional[Union[str, EndpointMonitorStatus]] = None,
endpoint_location: Optional[str] = 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.
Constructor 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",
MinChildEndpointsIPv6 = 0,
Priority = 0,
EndpointName = "string",
GeoMapping = new[]
{
"string",
},
Id = "string",
MinChildEndpoints = 0,
MinChildEndpointsIPv4 = 0,
CustomHeaders = new[]
{
{
{ "name", "string" },
{ "value", "string" },
},
},
Name = "string",
EndpointStatus = "string",
EndpointMonitorStatus = "string",
EndpointLocation = "string",
Subnets = new[]
{
{
{ "first", "string" },
{ "last", "string" },
{ "scope", 0 },
},
},
Target = "string",
TargetResourceId = "string",
Type = "string",
Weight = 0,
});
example, err := network.NewEndpoint(ctx, "exampleendpointResourceResourceFromNetwork", &network.EndpointArgs{
EndpointType: "string",
ResourceGroupName: "string",
ProfileName: "string",
MinChildEndpointsIPv6: 0,
Priority: 0,
EndpointName: "string",
GeoMapping: []string{
"string",
},
Id: "string",
MinChildEndpoints: 0,
MinChildEndpointsIPv4: 0,
CustomHeaders: []map[string]interface{}{
map[string]interface{}{
"name": "string",
"value": "string",
},
},
Name: "string",
EndpointStatus: "string",
EndpointMonitorStatus: "string",
EndpointLocation: "string",
Subnets: []map[string]interface{}{
map[string]interface{}{
"first": "string",
"last": "string",
"scope": 0,
},
},
Target: "string",
TargetResourceId: "string",
Type: "string",
Weight: 0,
})
var exampleendpointResourceResourceFromNetwork = new Endpoint("exampleendpointResourceResourceFromNetwork", EndpointArgs.builder()
.endpointType("string")
.resourceGroupName("string")
.profileName("string")
.minChildEndpointsIPv6(0)
.priority(0)
.endpointName("string")
.geoMapping("string")
.id("string")
.minChildEndpoints(0)
.minChildEndpointsIPv4(0)
.customHeaders(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.name("string")
.endpointStatus("string")
.endpointMonitorStatus("string")
.endpointLocation("string")
.subnets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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,
min_child_endpoints_i_pv6=0,
priority=0,
endpoint_name=string,
geo_mapping=[string],
id=string,
min_child_endpoints=0,
min_child_endpoints_i_pv4=0,
custom_headers=[{
name: string,
value: string,
}],
name=string,
endpoint_status=string,
endpoint_monitor_status=string,
endpoint_location=string,
subnets=[{
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",
minChildEndpointsIPv6: 0,
priority: 0,
endpointName: "string",
geoMapping: ["string"],
id: "string",
minChildEndpoints: 0,
minChildEndpointsIPv4: 0,
customHeaders: [{
name: "string",
value: "string",
}],
name: "string",
endpointStatus: "string",
endpointMonitorStatus: "string",
endpointLocation: "string",
subnets: [{
first: "string",
last: "string",
scope: 0,
}],
target: "string",
targetResourceId: "string",
type: "string",
weight: 0,
});
type: azure-native:network:Endpoint
properties:
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
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:
- Endpoint
Type string - The type of the Traffic Manager endpoint to be created or updated.
- Profile
Name string - The name of the Traffic Manager profile.
- Resource
Group stringName - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- Custom
Headers List<Pulumi.Azure Native. Network. Inputs. Endpoint Properties Custom Headers> - List of custom headers.
- Endpoint
Location string - Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
- Endpoint
Monitor string | Pulumi.Status Azure Native. Network. Endpoint Monitor Status - The monitoring status of the endpoint.
- Endpoint
Name string - The name of the Traffic Manager endpoint to be created or updated.
- Endpoint
Status string | Pulumi.Azure Native. Network. Endpoint Status - 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 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}
- Min
Child doubleEndpoints - 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 doubleEndpoints IPv4 - 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 doubleEndpoints IPv6 - 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.
Azure Native. Network. Inputs. Endpoint Properties Subnets> - 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.
- Target
Resource stringId - 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.
- Endpoint
Type string - The type of the Traffic Manager endpoint to be created or updated.
- Profile
Name string - The name of the Traffic Manager profile.
- Resource
Group stringName - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- Custom
Headers []EndpointProperties Custom Headers Args - List of custom headers.
- Endpoint
Location string - Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
- Endpoint
Monitor string | EndpointStatus Monitor Status - The monitoring status of the endpoint.
- Endpoint
Name string - The name of the Traffic Manager endpoint to be created or updated.
- Endpoint
Status 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.
- Geo
Mapping []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}
- Min
Child float64Endpoints - 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 float64Endpoints IPv4 - 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 float64Endpoints IPv6 - 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
[]Endpoint
Properties Subnets Args - 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.
- Target
Resource stringId - 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.
- endpoint
Type String - The type of the Traffic Manager endpoint to be created or updated.
- profile
Name String - The name of the Traffic Manager profile.
- resource
Group StringName - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- custom
Headers List<EndpointProperties Custom Headers> - List of custom headers.
- endpoint
Location String - Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
- endpoint
Monitor String | EndpointStatus Monitor Status - The monitoring status of the endpoint.
- endpoint
Name String - The name of the Traffic Manager endpoint to be created or updated.
- endpoint
Status 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.
- geo
Mapping 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}
- min
Child DoubleEndpoints - 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 DoubleEndpoints IPv4 - 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 DoubleEndpoints IPv6 - 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<Endpoint
Properties Subnets> - 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.
- target
Resource StringId - 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.
- endpoint
Type string - The type of the Traffic Manager endpoint to be created or updated.
- profile
Name string - The name of the Traffic Manager profile.
- resource
Group stringName - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- custom
Headers EndpointProperties Custom Headers[] - List of custom headers.
- endpoint
Location string - Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
- endpoint
Monitor string | EndpointStatus Monitor Status - The monitoring status of the endpoint.
- endpoint
Name string - The name of the Traffic Manager endpoint to be created or updated.
- endpoint
Status 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.
- geo
Mapping 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}
- min
Child numberEndpoints - 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 numberEndpoints IPv4 - 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 numberEndpoints IPv6 - 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
Endpoint
Properties Subnets[] - 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.
- target
Resource stringId - 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_ strname - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- custom_
headers Sequence[EndpointProperties Custom Headers Args] - 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_ str | Endpointstatus Monitor Status - 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_ floatendpoints - 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_ floatendpoints_ i_ pv4 - 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_ floatendpoints_ i_ pv6 - 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[Endpoint
Properties Subnets Args] - 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_ strid - 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.
- endpoint
Type String - The type of the Traffic Manager endpoint to be created or updated.
- profile
Name String - The name of the Traffic Manager profile.
- resource
Group StringName - The name of the resource group containing the Traffic Manager endpoint to be created or updated.
- custom
Headers List<Property Map> - List of custom headers.
- endpoint
Location String - Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
- endpoint
Monitor String | "CheckingStatus Endpoint" | "Online" | "Degraded" | "Disabled" | "Inactive" | "Stopped" - The monitoring status of the endpoint.
- endpoint
Name String - The name of the Traffic Manager endpoint to be created or updated.
- endpoint
Status 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.
- geo
Mapping 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}
- min
Child NumberEndpoints - 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 NumberEndpoints IPv4 - 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 NumberEndpoints IPv6 - 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.
- target
Resource StringId - 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
EndpointMonitorStatus, EndpointMonitorStatusArgs
- Checking
Endpoint - CheckingEndpoint
- Online
- Online
- Degraded
- Degraded
- Disabled
- Disabled
- Inactive
- Inactive
- Stopped
- Stopped
- Endpoint
Monitor Status Checking Endpoint - CheckingEndpoint
- Endpoint
Monitor Status Online - Online
- Endpoint
Monitor Status Degraded - Degraded
- Endpoint
Monitor Status Disabled - Disabled
- Endpoint
Monitor Status Inactive - Inactive
- Endpoint
Monitor Status Stopped - Stopped
- Checking
Endpoint - CheckingEndpoint
- Online
- Online
- Degraded
- Degraded
- Disabled
- Disabled
- Inactive
- Inactive
- Stopped
- Stopped
- Checking
Endpoint - CheckingEndpoint
- Online
- Online
- Degraded
- Degraded
- Disabled
- Disabled
- Inactive
- Inactive
- Stopped
- Stopped
- CHECKING_ENDPOINT
- CheckingEndpoint
- ONLINE
- Online
- DEGRADED
- Degraded
- DISABLED
- Disabled
- INACTIVE
- Inactive
- STOPPED
- Stopped
- "Checking
Endpoint" - CheckingEndpoint
- "Online"
- Online
- "Degraded"
- Degraded
- "Disabled"
- Disabled
- "Inactive"
- Inactive
- "Stopped"
- Stopped
EndpointPropertiesCustomHeaders, EndpointPropertiesCustomHeadersArgs
EndpointPropertiesResponseCustomHeaders, EndpointPropertiesResponseCustomHeadersArgs
EndpointPropertiesResponseSubnets, EndpointPropertiesResponseSubnetsArgs
EndpointPropertiesSubnets, EndpointPropertiesSubnetsArgs
EndpointStatus, EndpointStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Endpoint
Status Enabled - Enabled
- Endpoint
Status Disabled - 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/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0