get Encryption Scope
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()));
}
}
Content copied to clipboard
Return
A collection of values returned by getEncryptionScope.
Parameters
argument
A collection of arguments for invoking getEncryptionScope.
Return
A collection of values returned by getEncryptionScope.
See also
Parameters
name
The name of this Storage Encryption Scope.
storage Account Id
The ID of the Storage Account where this Storage Encryption Scope exists.
suspend fun getEncryptionScope(argument: suspend GetEncryptionScopePlainArgsBuilder.() -> Unit): GetEncryptionScopeResult
Return
A collection of values returned by getEncryptionScope.
See also
Parameters
argument
Builder for com.pulumi.azure.storage.kotlin.inputs.GetEncryptionScopePlainArgs.