getProtectionContainer

Use this data source to access information about an existing site recovery services protection container.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.siterecovery.SiterecoveryFunctions;
import com.pulumi.azure.siterecovery.inputs.GetProtectionContainerArgs;
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 container = SiterecoveryFunctions.getProtectionContainer(GetProtectionContainerArgs.builder()
.name("primary-container")
.recoveryFabricName("primary-fabric")
.recoveryVaultName("tfex-recovery_vault")
.resourceGroupName("tfex-resource_group")
.build());
}
}

Return

A collection of values returned by getProtectionContainer.

Parameters

argument

A collection of arguments for invoking getProtectionContainer.


suspend fun getProtectionContainer(name: String, recoveryFabricName: String, recoveryVaultName: String, resourceGroupName: String): GetProtectionContainerResult

Return

A collection of values returned by getProtectionContainer.

See also

Parameters

name

Specifies the name of the protection container.

recoveryFabricName

The name of the fabric that contains the protection container.

recoveryVaultName

The name of the Recovery Services Vault that the protection container is associated witth.

resourceGroupName

The name of the resource group in which the associated protection container resides.


Return

A collection of values returned by getProtectionContainer.

See also

Parameters

argument

Builder for com.pulumi.azure.siterecovery.kotlin.inputs.GetProtectionContainerPlainArgs.