getTrafficManagerProfile

Use this data source to access information about an existing 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.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetTrafficManagerProfileArgs;
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) {
final var example = NetworkFunctions.getTrafficManagerProfile(GetTrafficManagerProfileArgs.builder()
.name("test")
.resourceGroupName("test")
.build());
ctx.export("trafficRoutingMethod", example.applyValue(getTrafficManagerProfileResult -> getTrafficManagerProfileResult.trafficRoutingMethod()));
}
}

Return

A collection of values returned by getTrafficManagerProfile.

Parameters

argument

A collection of arguments for invoking getTrafficManagerProfile.


suspend fun getTrafficManagerProfile(name: String, resourceGroupName: String, tags: Map<String, String>? = null, trafficViewEnabled: Boolean? = null): GetTrafficManagerProfileResult

Return

A collection of values returned by getTrafficManagerProfile.

See also

Parameters

name

Specifies the name of the Traffic Manager Profile.

resourceGroupName

Specifies the name of the resource group the Traffic Manager Profile is located in.

tags

A mapping of tags to assign to the resource.

trafficViewEnabled

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


Return

A collection of values returned by getTrafficManagerProfile.

See also

Parameters

argument

Builder for com.pulumi.azure.network.kotlin.inputs.GetTrafficManagerProfilePlainArgs.