Traffic Manager External Endpoint Args
data class TrafficManagerExternalEndpointArgs(val alwaysServeEnabled: Output<Boolean>? = null, val customHeaders: Output<List<TrafficManagerExternalEndpointCustomHeaderArgs>>? = null, val enabled: Output<Boolean>? = null, val endpointLocation: Output<String>? = null, val geoMappings: Output<List<String>>? = null, val name: Output<String>? = null, val priority: Output<Int>? = null, val profileId: Output<String>? = null, val subnets: Output<List<TrafficManagerExternalEndpointSubnetArgs>>? = null, val target: Output<String>? = null, val weight: Output<Int>? = null) : ConvertibleToJava<TrafficManagerExternalEndpointArgs>
Manages an External Endpoint within a Traffic Manager Profile.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.TrafficManagerProfile;
import com.pulumi.azure.network.TrafficManagerProfileArgs;
import com.pulumi.azure.network.inputs.TrafficManagerProfileDnsConfigArgs;
import com.pulumi.azure.network.inputs.TrafficManagerProfileMonitorConfigArgs;
import com.pulumi.azure.network.TrafficManagerExternalEndpoint;
import com.pulumi.azure.network.TrafficManagerExternalEndpointArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleTrafficManagerProfile = new TrafficManagerProfile("exampleTrafficManagerProfile", TrafficManagerProfileArgs.builder()
.name("example-profile")
.resourceGroupName(example.name())
.trafficRoutingMethod("Weighted")
.dnsConfig(TrafficManagerProfileDnsConfigArgs.builder()
.relativeName("example-profile")
.ttl(100)
.build())
.monitorConfig(TrafficManagerProfileMonitorConfigArgs.builder()
.protocol("HTTP")
.port(80)
.path("/")
.intervalInSeconds(30)
.timeoutInSeconds(9)
.toleratedNumberOfFailures(3)
.build())
.tags(Map.of("environment", "Production"))
.build());
var exampleTrafficManagerExternalEndpoint = new TrafficManagerExternalEndpoint("exampleTrafficManagerExternalEndpoint", TrafficManagerExternalEndpointArgs.builder()
.name("example-endpoint")
.profileId(exampleTrafficManagerProfile.id())
.alwaysServeEnabled(true)
.weight(100)
.target("www.example.com")
.build());
}
}Content copied to clipboard
Import
External Endpoints can be imported using the resource id, e.g.
$ pulumi import azure:network/trafficManagerExternalEndpoint:TrafficManagerExternalEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-group/providers/Microsoft.Network/trafficManagerProfiles/example-profile/ExternalEndpoints/example-endpointContent copied to clipboard
Constructors
Link copied to clipboard
fun TrafficManagerExternalEndpointArgs(alwaysServeEnabled: Output<Boolean>? = null, customHeaders: Output<List<TrafficManagerExternalEndpointCustomHeaderArgs>>? = null, enabled: Output<Boolean>? = null, endpointLocation: Output<String>? = null, geoMappings: Output<List<String>>? = null, name: Output<String>? = null, priority: Output<Int>? = null, profileId: Output<String>? = null, subnets: Output<List<TrafficManagerExternalEndpointSubnetArgs>>? = null, target: Output<String>? = null, weight: Output<Int>? = null)
Functions
Properties
Link copied to clipboard
A list of Geographic Regions used to distribute traffic, such as WORLD, UK or DE. The same location can't be specified in two endpoints. See the Geographic Hierarchies documentation for more information.
Link copied to clipboard