get Network Ddos Protection Plan
suspend fun getNetworkDdosProtectionPlan(argument: GetNetworkDdosProtectionPlanPlainArgs): GetNetworkDdosProtectionPlanResult
Use this data source to access information about an existing Azure Network DDoS Protection Plan.
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.GetNetworkDdosProtectionPlanArgs;
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.getNetworkDdosProtectionPlan(GetNetworkDdosProtectionPlanArgs.builder()
.name(azurerm_network_ddos_protection_plan.example().name())
.resourceGroupName(azurerm_network_ddos_protection_plan.example().resource_group_name())
.build());
ctx.export("ddosProtectionPlanId", example.applyValue(getNetworkDdosProtectionPlanResult -> getNetworkDdosProtectionPlanResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getNetworkDdosProtectionPlan.
Parameters
argument
A collection of arguments for invoking getNetworkDdosProtectionPlan.
suspend fun getNetworkDdosProtectionPlan(name: String, resourceGroupName: String, tags: Map<String, String>? = null): GetNetworkDdosProtectionPlanResult
Return
A collection of values returned by getNetworkDdosProtectionPlan.
See also
Parameters
name
The name of the Network DDoS Protection Plan.
resource Group Name
The name of the resource group where the Network DDoS Protection Plan exists.
tags
A mapping of tags assigned to the resource.
suspend fun getNetworkDdosProtectionPlan(argument: suspend GetNetworkDdosProtectionPlanPlainArgsBuilder.() -> Unit): GetNetworkDdosProtectionPlanResult
Return
A collection of values returned by getNetworkDdosProtectionPlan.
See also
Parameters
argument
Builder for com.pulumi.azure.network.kotlin.inputs.GetNetworkDdosProtectionPlanPlainArgs.