getEncryptionScope

Use this data source to access information about an existing Storage Encryption Scope.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.storage.StorageFunctions;
import com.pulumi.azure.storage.inputs.GetAccountArgs;
import com.pulumi.azure.storage.inputs.GetEncryptionScopeArgs;
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 exampleAccount = StorageFunctions.getAccount(GetAccountArgs.builder()
.name("storageaccountname")
.resourceGroupName("resourcegroupname")
.build());
final var exampleEncryptionScope = StorageFunctions.getEncryptionScope(GetEncryptionScopeArgs.builder()
.name("existingStorageES")
.storageAccountId(exampleAccount.applyValue(getAccountResult -> getAccountResult.id()))
.build());
ctx.export("id", exampleEncryptionScope.applyValue(getEncryptionScopeResult -> getEncryptionScopeResult.id()));
}
}

Return

A collection of values returned by getEncryptionScope.

Parameters

argument

A collection of arguments for invoking getEncryptionScope.


suspend fun getEncryptionScope(name: String, storageAccountId: String): GetEncryptionScopeResult

Return

A collection of values returned by getEncryptionScope.

See also

Parameters

name

The name of this Storage Encryption Scope.

storageAccountId

The ID of the Storage Account where this Storage Encryption Scope exists.


Return

A collection of values returned by getEncryptionScope.

See also

Parameters

argument

Builder for com.pulumi.azure.storage.kotlin.inputs.GetEncryptionScopePlainArgs.