get Protection Container
suspend fun getProtectionContainer(argument: GetProtectionContainerPlainArgs): GetProtectionContainerResult
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());
}
}
Content copied to clipboard
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.
recovery Fabric Name
The name of the fabric that contains the protection container.
recovery Vault Name
The name of the Recovery Services Vault that the protection container is associated witth.
resource Group Name
The name of the resource group in which the associated protection container resides.
suspend fun getProtectionContainer(argument: suspend GetProtectionContainerPlainArgsBuilder.() -> Unit): GetProtectionContainerResult
Return
A collection of values returned by getProtectionContainer.
See also
Parameters
argument
Builder for com.pulumi.azure.siterecovery.kotlin.inputs.GetProtectionContainerPlainArgs.