com.pulumi.azure.storage.StorageFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.storage;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.storage.inputs.GetAccountArgs;
import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASArgs;
import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASPlainArgs;
import com.pulumi.azure.storage.inputs.GetAccountPlainArgs;
import com.pulumi.azure.storage.inputs.GetAccountSASArgs;
import com.pulumi.azure.storage.inputs.GetAccountSASPlainArgs;
import com.pulumi.azure.storage.inputs.GetBlobArgs;
import com.pulumi.azure.storage.inputs.GetBlobPlainArgs;
import com.pulumi.azure.storage.inputs.GetContainersArgs;
import com.pulumi.azure.storage.inputs.GetContainersPlainArgs;
import com.pulumi.azure.storage.inputs.GetEncryptionScopeArgs;
import com.pulumi.azure.storage.inputs.GetEncryptionScopePlainArgs;
import com.pulumi.azure.storage.inputs.GetPolicyArgs;
import com.pulumi.azure.storage.inputs.GetPolicyPlainArgs;
import com.pulumi.azure.storage.inputs.GetQueueArgs;
import com.pulumi.azure.storage.inputs.GetQueuePlainArgs;
import com.pulumi.azure.storage.inputs.GetShareArgs;
import com.pulumi.azure.storage.inputs.GetSharePlainArgs;
import com.pulumi.azure.storage.inputs.GetStorageContainerArgs;
import com.pulumi.azure.storage.inputs.GetStorageContainerPlainArgs;
import com.pulumi.azure.storage.inputs.GetSyncArgs;
import com.pulumi.azure.storage.inputs.GetSyncGroupArgs;
import com.pulumi.azure.storage.inputs.GetSyncGroupPlainArgs;
import com.pulumi.azure.storage.inputs.GetSyncPlainArgs;
import com.pulumi.azure.storage.inputs.GetTableArgs;
import com.pulumi.azure.storage.inputs.GetTableEntitiesArgs;
import com.pulumi.azure.storage.inputs.GetTableEntitiesPlainArgs;
import com.pulumi.azure.storage.inputs.GetTableEntityArgs;
import com.pulumi.azure.storage.inputs.GetTableEntityPlainArgs;
import com.pulumi.azure.storage.inputs.GetTablePlainArgs;
import com.pulumi.azure.storage.outputs.GetAccountBlobContainerSASResult;
import com.pulumi.azure.storage.outputs.GetAccountResult;
import com.pulumi.azure.storage.outputs.GetAccountSASResult;
import com.pulumi.azure.storage.outputs.GetBlobResult;
import com.pulumi.azure.storage.outputs.GetContainersResult;
import com.pulumi.azure.storage.outputs.GetEncryptionScopeResult;
import com.pulumi.azure.storage.outputs.GetPolicyResult;
import com.pulumi.azure.storage.outputs.GetQueueResult;
import com.pulumi.azure.storage.outputs.GetShareResult;
import com.pulumi.azure.storage.outputs.GetStorageContainerResult;
import com.pulumi.azure.storage.outputs.GetSyncGroupResult;
import com.pulumi.azure.storage.outputs.GetSyncResult;
import com.pulumi.azure.storage.outputs.GetTableEntitiesResult;
import com.pulumi.azure.storage.outputs.GetTableEntityResult;
import com.pulumi.azure.storage.outputs.GetTableResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;
public final class StorageFunctions {
/**
* Use this data source to access information about an existing Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("packerimages")
* .resourceGroupName("packer-storage")
* .build());
*
* ctx.export("storageAccountTier", example.applyValue(getAccountResult -> getAccountResult.accountTier()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccount(GetAccountArgs args) {
return getAccount(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("packerimages")
* .resourceGroupName("packer-storage")
* .build());
*
* ctx.export("storageAccountTier", example.applyValue(getAccountResult -> getAccountResult.accountTier()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountPlain(GetAccountPlainArgs args) {
return getAccountPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("packerimages")
* .resourceGroupName("packer-storage")
* .build());
*
* ctx.export("storageAccountTier", example.applyValue(getAccountResult -> getAccountResult.accountTier()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccount(GetAccountArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("packerimages")
* .resourceGroupName("packer-storage")
* .build());
*
* ctx.export("storageAccountTier", example.applyValue(getAccountResult -> getAccountResult.accountTier()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountPlain(GetAccountPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account Blob Container.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account Blob Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.Container;
* import com.pulumi.azure.storage.ContainerArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASPermissionsArgs;
* 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) {
* var rg = new ResourceGroup("rg", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var storage = new Account("storage", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(rg.name())
* .location(rg.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
*
* var container = new Container("container", ContainerArgs.builder()
* .name("mycontainer")
* .storageAccountName(storage.name())
* .containerAccessType("private")
* .build());
*
* final var example = StorageFunctions.getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs.builder()
* .connectionString(storage.primaryConnectionString())
* .containerName(container.name())
* .httpsOnly(true)
* .ipAddress("168.1.5.65")
* .start("2018-03-21")
* .expiry("2018-03-21")
* .permissions(GetAccountBlobContainerSASPermissionsArgs.builder()
* .read(true)
* .add(true)
* .create(false)
* .write(false)
* .delete(true)
* .list(true)
* .build())
* .cacheControl("max-age=5")
* .contentDisposition("inline")
* .contentEncoding("deflate")
* .contentLanguage("en-US")
* .contentType("application/json")
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult).applyValue(example -> example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs args) {
return getAccountBlobContainerSAS(args, InvokeOptions.Empty);
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account Blob Container.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account Blob Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.Container;
* import com.pulumi.azure.storage.ContainerArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASPermissionsArgs;
* 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) {
* var rg = new ResourceGroup("rg", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var storage = new Account("storage", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(rg.name())
* .location(rg.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
*
* var container = new Container("container", ContainerArgs.builder()
* .name("mycontainer")
* .storageAccountName(storage.name())
* .containerAccessType("private")
* .build());
*
* final var example = StorageFunctions.getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs.builder()
* .connectionString(storage.primaryConnectionString())
* .containerName(container.name())
* .httpsOnly(true)
* .ipAddress("168.1.5.65")
* .start("2018-03-21")
* .expiry("2018-03-21")
* .permissions(GetAccountBlobContainerSASPermissionsArgs.builder()
* .read(true)
* .add(true)
* .create(false)
* .write(false)
* .delete(true)
* .list(true)
* .build())
* .cacheControl("max-age=5")
* .contentDisposition("inline")
* .contentEncoding("deflate")
* .contentLanguage("en-US")
* .contentType("application/json")
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult).applyValue(example -> example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountBlobContainerSASPlain(GetAccountBlobContainerSASPlainArgs args) {
return getAccountBlobContainerSASPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account Blob Container.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account Blob Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.Container;
* import com.pulumi.azure.storage.ContainerArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASPermissionsArgs;
* 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) {
* var rg = new ResourceGroup("rg", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var storage = new Account("storage", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(rg.name())
* .location(rg.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
*
* var container = new Container("container", ContainerArgs.builder()
* .name("mycontainer")
* .storageAccountName(storage.name())
* .containerAccessType("private")
* .build());
*
* final var example = StorageFunctions.getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs.builder()
* .connectionString(storage.primaryConnectionString())
* .containerName(container.name())
* .httpsOnly(true)
* .ipAddress("168.1.5.65")
* .start("2018-03-21")
* .expiry("2018-03-21")
* .permissions(GetAccountBlobContainerSASPermissionsArgs.builder()
* .read(true)
* .add(true)
* .create(false)
* .write(false)
* .delete(true)
* .list(true)
* .build())
* .cacheControl("max-age=5")
* .contentDisposition("inline")
* .contentEncoding("deflate")
* .contentLanguage("en-US")
* .contentType("application/json")
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult).applyValue(example -> example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getAccountBlobContainerSAS:getAccountBlobContainerSAS", TypeShape.of(GetAccountBlobContainerSASResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account Blob Container.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account Blob Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.Container;
* import com.pulumi.azure.storage.ContainerArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountBlobContainerSASPermissionsArgs;
* 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) {
* var rg = new ResourceGroup("rg", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var storage = new Account("storage", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(rg.name())
* .location(rg.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
*
* var container = new Container("container", ContainerArgs.builder()
* .name("mycontainer")
* .storageAccountName(storage.name())
* .containerAccessType("private")
* .build());
*
* final var example = StorageFunctions.getAccountBlobContainerSAS(GetAccountBlobContainerSASArgs.builder()
* .connectionString(storage.primaryConnectionString())
* .containerName(container.name())
* .httpsOnly(true)
* .ipAddress("168.1.5.65")
* .start("2018-03-21")
* .expiry("2018-03-21")
* .permissions(GetAccountBlobContainerSASPermissionsArgs.builder()
* .read(true)
* .add(true)
* .create(false)
* .write(false)
* .delete(true)
* .list(true)
* .build())
* .cacheControl("max-age=5")
* .contentDisposition("inline")
* .contentEncoding("deflate")
* .contentLanguage("en-US")
* .contentType("application/json")
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult).applyValue(example -> example.applyValue(getAccountBlobContainerSASResult -> getAccountBlobContainerSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountBlobContainerSASPlain(GetAccountBlobContainerSASPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getAccountBlobContainerSAS:getAccountBlobContainerSAS", TypeShape.of(GetAccountBlobContainerSASResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.
*
* Note that this is an [Account SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-an-account-sas)
* and *not* a [Service SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASResourceTypesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASServicesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASPermissionsArgs;
* 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) {
* var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .accountTier("Standard")
* .accountReplicationType("GRS")
* .tags(Map.of("environment", "staging"))
* .build());
*
* final var example = StorageFunctions.getAccountSAS(GetAccountSASArgs.builder()
* .connectionString(exampleAccount.primaryConnectionString())
* .httpsOnly(true)
* .signedVersion("2017-07-29")
* .resourceTypes(GetAccountSASResourceTypesArgs.builder()
* .service(true)
* .container(false)
* .object(false)
* .build())
* .services(GetAccountSASServicesArgs.builder()
* .blob(true)
* .queue(false)
* .table(false)
* .file(false)
* .build())
* .start("2018-03-21T00:00:00Z")
* .expiry("2020-03-21T00:00:00Z")
* .permissions(GetAccountSASPermissionsArgs.builder()
* .read(true)
* .write(true)
* .delete(false)
* .list(false)
* .add(true)
* .create(true)
* .update(false)
* .process(false)
* .tag(false)
* .filter(false)
* .build())
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountSASResult -> getAccountSASResult).applyValue(example -> example.applyValue(getAccountSASResult -> getAccountSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccountSAS(GetAccountSASArgs args) {
return getAccountSAS(args, InvokeOptions.Empty);
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.
*
* Note that this is an [Account SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-an-account-sas)
* and *not* a [Service SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASResourceTypesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASServicesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASPermissionsArgs;
* 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) {
* var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .accountTier("Standard")
* .accountReplicationType("GRS")
* .tags(Map.of("environment", "staging"))
* .build());
*
* final var example = StorageFunctions.getAccountSAS(GetAccountSASArgs.builder()
* .connectionString(exampleAccount.primaryConnectionString())
* .httpsOnly(true)
* .signedVersion("2017-07-29")
* .resourceTypes(GetAccountSASResourceTypesArgs.builder()
* .service(true)
* .container(false)
* .object(false)
* .build())
* .services(GetAccountSASServicesArgs.builder()
* .blob(true)
* .queue(false)
* .table(false)
* .file(false)
* .build())
* .start("2018-03-21T00:00:00Z")
* .expiry("2020-03-21T00:00:00Z")
* .permissions(GetAccountSASPermissionsArgs.builder()
* .read(true)
* .write(true)
* .delete(false)
* .list(false)
* .add(true)
* .create(true)
* .update(false)
* .process(false)
* .tag(false)
* .filter(false)
* .build())
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountSASResult -> getAccountSASResult).applyValue(example -> example.applyValue(getAccountSASResult -> getAccountSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountSASPlain(GetAccountSASPlainArgs args) {
return getAccountSASPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.
*
* Note that this is an [Account SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-an-account-sas)
* and *not* a [Service SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASResourceTypesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASServicesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASPermissionsArgs;
* 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) {
* var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .accountTier("Standard")
* .accountReplicationType("GRS")
* .tags(Map.of("environment", "staging"))
* .build());
*
* final var example = StorageFunctions.getAccountSAS(GetAccountSASArgs.builder()
* .connectionString(exampleAccount.primaryConnectionString())
* .httpsOnly(true)
* .signedVersion("2017-07-29")
* .resourceTypes(GetAccountSASResourceTypesArgs.builder()
* .service(true)
* .container(false)
* .object(false)
* .build())
* .services(GetAccountSASServicesArgs.builder()
* .blob(true)
* .queue(false)
* .table(false)
* .file(false)
* .build())
* .start("2018-03-21T00:00:00Z")
* .expiry("2020-03-21T00:00:00Z")
* .permissions(GetAccountSASPermissionsArgs.builder()
* .read(true)
* .write(true)
* .delete(false)
* .list(false)
* .add(true)
* .create(true)
* .update(false)
* .process(false)
* .tag(false)
* .filter(false)
* .build())
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountSASResult -> getAccountSASResult).applyValue(example -> example.applyValue(getAccountSASResult -> getAccountSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccountSAS(GetAccountSASArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getAccountSAS:getAccountSAS", TypeShape.of(GetAccountSASResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to obtain a Shared Access Signature (SAS Token) for an existing Storage Account.
*
* Shared access signatures allow fine-grained, ephemeral access control to various aspects of an Azure Storage Account.
*
* Note that this is an [Account SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-an-account-sas)
* and *not* a [Service SAS](https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.StorageFunctions;
* import com.pulumi.azure.storage.inputs.GetAccountSASArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASResourceTypesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASServicesArgs;
* import com.pulumi.azure.storage.inputs.GetAccountSASPermissionsArgs;
* 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) {
* var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("resourceGroupName")
* .location("West Europe")
* .build());
*
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .accountTier("Standard")
* .accountReplicationType("GRS")
* .tags(Map.of("environment", "staging"))
* .build());
*
* final var example = StorageFunctions.getAccountSAS(GetAccountSASArgs.builder()
* .connectionString(exampleAccount.primaryConnectionString())
* .httpsOnly(true)
* .signedVersion("2017-07-29")
* .resourceTypes(GetAccountSASResourceTypesArgs.builder()
* .service(true)
* .container(false)
* .object(false)
* .build())
* .services(GetAccountSASServicesArgs.builder()
* .blob(true)
* .queue(false)
* .table(false)
* .file(false)
* .build())
* .start("2018-03-21T00:00:00Z")
* .expiry("2020-03-21T00:00:00Z")
* .permissions(GetAccountSASPermissionsArgs.builder()
* .read(true)
* .write(true)
* .delete(false)
* .list(false)
* .add(true)
* .create(true)
* .update(false)
* .process(false)
* .tag(false)
* .filter(false)
* .build())
* .build());
*
* ctx.export("sasUrlQueryString", example.applyValue(getAccountSASResult -> getAccountSASResult).applyValue(example -> example.applyValue(getAccountSASResult -> getAccountSASResult.sas())));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountSASPlain(GetAccountSASPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getAccountSAS:getAccountSAS", TypeShape.of(GetAccountSASResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Blob.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetBlobArgs;
* 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 = StorageFunctions.getBlob(GetBlobArgs.builder()
* .name("example-blob-name")
* .storageAccountName("example-storage-account-name")
* .storageContainerName("example-storage-container-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getBlob(GetBlobArgs args) {
return getBlob(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Blob.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetBlobArgs;
* 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 = StorageFunctions.getBlob(GetBlobArgs.builder()
* .name("example-blob-name")
* .storageAccountName("example-storage-account-name")
* .storageContainerName("example-storage-container-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getBlobPlain(GetBlobPlainArgs args) {
return getBlobPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Blob.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetBlobArgs;
* 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 = StorageFunctions.getBlob(GetBlobArgs.builder()
* .name("example-blob-name")
* .storageAccountName("example-storage-account-name")
* .storageContainerName("example-storage-container-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getBlob(GetBlobArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getBlob:getBlob", TypeShape.of(GetBlobResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Blob.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetBlobArgs;
* 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 = StorageFunctions.getBlob(GetBlobArgs.builder()
* .name("example-blob-name")
* .storageAccountName("example-storage-account-name")
* .storageContainerName("example-storage-container-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getBlobPlain(GetBlobPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getBlob:getBlob", TypeShape.of(GetBlobResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about the existing Storage Containers within a Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetContainersArgs;
* 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 = StorageFunctions.getContainers(GetContainersArgs.builder()
* .storageAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/sa1")
* .build());
*
* ctx.export("containerId", example.applyValue(getContainersResult -> getContainersResult.containers()[0].resourceManagerId()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getContainers(GetContainersArgs args) {
return getContainers(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about the existing Storage Containers within a Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetContainersArgs;
* 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 = StorageFunctions.getContainers(GetContainersArgs.builder()
* .storageAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/sa1")
* .build());
*
* ctx.export("containerId", example.applyValue(getContainersResult -> getContainersResult.containers()[0].resourceManagerId()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getContainersPlain(GetContainersPlainArgs args) {
return getContainersPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about the existing Storage Containers within a Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetContainersArgs;
* 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 = StorageFunctions.getContainers(GetContainersArgs.builder()
* .storageAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/sa1")
* .build());
*
* ctx.export("containerId", example.applyValue(getContainersResult -> getContainersResult.containers()[0].resourceManagerId()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getContainers(GetContainersArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getContainers:getContainers", TypeShape.of(GetContainersResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about the existing Storage Containers within a Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetContainersArgs;
* 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 = StorageFunctions.getContainers(GetContainersArgs.builder()
* .storageAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/sa1")
* .build());
*
* ctx.export("containerId", example.applyValue(getContainersResult -> getContainersResult.containers()[0].resourceManagerId()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getContainersPlain(GetContainersPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getContainers:getContainers", TypeShape.of(GetContainersResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Encryption Scope.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 example = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetEncryptionScope = StorageFunctions.getEncryptionScope(GetEncryptionScopeArgs.builder()
* .name("existingStorageES")
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* ctx.export("id", exampleGetEncryptionScope.applyValue(getEncryptionScopeResult -> getEncryptionScopeResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getEncryptionScope(GetEncryptionScopeArgs args) {
return getEncryptionScope(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Encryption Scope.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 example = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetEncryptionScope = StorageFunctions.getEncryptionScope(GetEncryptionScopeArgs.builder()
* .name("existingStorageES")
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* ctx.export("id", exampleGetEncryptionScope.applyValue(getEncryptionScopeResult -> getEncryptionScopeResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getEncryptionScopePlain(GetEncryptionScopePlainArgs args) {
return getEncryptionScopePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Encryption Scope.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 example = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetEncryptionScope = StorageFunctions.getEncryptionScope(GetEncryptionScopeArgs.builder()
* .name("existingStorageES")
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* ctx.export("id", exampleGetEncryptionScope.applyValue(getEncryptionScopeResult -> getEncryptionScopeResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getEncryptionScope(GetEncryptionScopeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getEncryptionScope:getEncryptionScope", TypeShape.of(GetEncryptionScopeResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Encryption Scope.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 example = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetEncryptionScope = StorageFunctions.getEncryptionScope(GetEncryptionScopeArgs.builder()
* .name("existingStorageES")
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* ctx.export("id", exampleGetEncryptionScope.applyValue(getEncryptionScopeResult -> getEncryptionScopeResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getEncryptionScopePlain(GetEncryptionScopePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getEncryptionScope:getEncryptionScope", TypeShape.of(GetEncryptionScopeResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Management Policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetPolicyArgs;
* 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetPolicy = StorageFunctions.getPolicy(GetPolicyArgs.builder()
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicy(GetPolicyArgs args) {
return getPolicy(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Management Policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetPolicyArgs;
* 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetPolicy = StorageFunctions.getPolicy(GetPolicyArgs.builder()
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args) {
return getPolicyPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Management Policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetPolicyArgs;
* 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetPolicy = StorageFunctions.getPolicy(GetPolicyArgs.builder()
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicy(GetPolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getPolicy:getPolicy", TypeShape.of(GetPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Management Policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetPolicyArgs;
* 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 = StorageFunctions.getAccount(GetAccountArgs.builder()
* .name("storageaccountname")
* .resourceGroupName("resourcegroupname")
* .build());
*
* final var exampleGetPolicy = StorageFunctions.getPolicy(GetPolicyArgs.builder()
* .storageAccountId(example.applyValue(getAccountResult -> getAccountResult.id()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getPolicy:getPolicy", TypeShape.of(GetPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Queue.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetQueueArgs;
* 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 = StorageFunctions.getQueue(GetQueueArgs.builder()
* .name("example-queue-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getQueue(GetQueueArgs args) {
return getQueue(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Queue.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetQueueArgs;
* 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 = StorageFunctions.getQueue(GetQueueArgs.builder()
* .name("example-queue-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getQueuePlain(GetQueuePlainArgs args) {
return getQueuePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Queue.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetQueueArgs;
* 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 = StorageFunctions.getQueue(GetQueueArgs.builder()
* .name("example-queue-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getQueue(GetQueueArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getQueue:getQueue", TypeShape.of(GetQueueResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Queue.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetQueueArgs;
* 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 = StorageFunctions.getQueue(GetQueueArgs.builder()
* .name("example-queue-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getQueuePlain(GetQueuePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getQueue:getQueue", TypeShape.of(GetQueueResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing File Share.
*
* > **Note on Authentication** Shared Key authentication will always be used for this data source, as AzureAD authentication is not supported by the Storage API for files.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetShareArgs;
* 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 = StorageFunctions.getShare(GetShareArgs.builder()
* .name("existing")
* .storageAccountName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getShareResult -> getShareResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getShare(GetShareArgs args) {
return getShare(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing File Share.
*
* > **Note on Authentication** Shared Key authentication will always be used for this data source, as AzureAD authentication is not supported by the Storage API for files.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetShareArgs;
* 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 = StorageFunctions.getShare(GetShareArgs.builder()
* .name("existing")
* .storageAccountName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getShareResult -> getShareResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSharePlain(GetSharePlainArgs args) {
return getSharePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing File Share.
*
* > **Note on Authentication** Shared Key authentication will always be used for this data source, as AzureAD authentication is not supported by the Storage API for files.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetShareArgs;
* 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 = StorageFunctions.getShare(GetShareArgs.builder()
* .name("existing")
* .storageAccountName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getShareResult -> getShareResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getShare(GetShareArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getShare:getShare", TypeShape.of(GetShareResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing File Share.
*
* > **Note on Authentication** Shared Key authentication will always be used for this data source, as AzureAD authentication is not supported by the Storage API for files.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetShareArgs;
* 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 = StorageFunctions.getShare(GetShareArgs.builder()
* .name("existing")
* .storageAccountName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getShareResult -> getShareResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSharePlain(GetSharePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getShare:getShare", TypeShape.of(GetShareResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetStorageContainerArgs;
* 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 = StorageFunctions.getStorageContainer(GetStorageContainerArgs.builder()
* .name("example-container-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getStorageContainer(GetStorageContainerArgs args) {
return getStorageContainer(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetStorageContainerArgs;
* 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 = StorageFunctions.getStorageContainer(GetStorageContainerArgs.builder()
* .name("example-container-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getStorageContainerPlain(GetStorageContainerPlainArgs args) {
return getStorageContainerPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetStorageContainerArgs;
* 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 = StorageFunctions.getStorageContainer(GetStorageContainerArgs.builder()
* .name("example-container-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getStorageContainer(GetStorageContainerArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getStorageContainer:getStorageContainer", TypeShape.of(GetStorageContainerResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Container.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetStorageContainerArgs;
* 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 = StorageFunctions.getStorageContainer(GetStorageContainerArgs.builder()
* .name("example-container-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getStorageContainerPlain(GetStorageContainerPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getStorageContainer:getStorageContainer", TypeShape.of(GetStorageContainerResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Sync.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncArgs;
* 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 = StorageFunctions.getSync(GetSyncArgs.builder()
* .name("existingStorageSyncName")
* .resourceGroupName("existingResGroup")
* .build());
*
* ctx.export("id", example.applyValue(getSyncResult -> getSyncResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSync(GetSyncArgs args) {
return getSync(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Sync.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncArgs;
* 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 = StorageFunctions.getSync(GetSyncArgs.builder()
* .name("existingStorageSyncName")
* .resourceGroupName("existingResGroup")
* .build());
*
* ctx.export("id", example.applyValue(getSyncResult -> getSyncResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSyncPlain(GetSyncPlainArgs args) {
return getSyncPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Sync.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncArgs;
* 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 = StorageFunctions.getSync(GetSyncArgs.builder()
* .name("existingStorageSyncName")
* .resourceGroupName("existingResGroup")
* .build());
*
* ctx.export("id", example.applyValue(getSyncResult -> getSyncResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSync(GetSyncArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getSync:getSync", TypeShape.of(GetSyncResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Sync.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncArgs;
* 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 = StorageFunctions.getSync(GetSyncArgs.builder()
* .name("existingStorageSyncName")
* .resourceGroupName("existingResGroup")
* .build());
*
* ctx.export("id", example.applyValue(getSyncResult -> getSyncResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSyncPlain(GetSyncPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getSync:getSync", TypeShape.of(GetSyncResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Sync Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncGroupArgs;
* 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 = StorageFunctions.getSyncGroup(GetSyncGroupArgs.builder()
* .name("existing-ss-group")
* .storageSyncId("existing-ss-id")
* .build());
*
* ctx.export("id", example.applyValue(getSyncGroupResult -> getSyncGroupResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSyncGroup(GetSyncGroupArgs args) {
return getSyncGroup(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Sync Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncGroupArgs;
* 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 = StorageFunctions.getSyncGroup(GetSyncGroupArgs.builder()
* .name("existing-ss-group")
* .storageSyncId("existing-ss-id")
* .build());
*
* ctx.export("id", example.applyValue(getSyncGroupResult -> getSyncGroupResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSyncGroupPlain(GetSyncGroupPlainArgs args) {
return getSyncGroupPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Sync Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncGroupArgs;
* 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 = StorageFunctions.getSyncGroup(GetSyncGroupArgs.builder()
* .name("existing-ss-group")
* .storageSyncId("existing-ss-id")
* .build());
*
* ctx.export("id", example.applyValue(getSyncGroupResult -> getSyncGroupResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getSyncGroup(GetSyncGroupArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getSyncGroup:getSyncGroup", TypeShape.of(GetSyncGroupResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Sync Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetSyncGroupArgs;
* 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 = StorageFunctions.getSyncGroup(GetSyncGroupArgs.builder()
* .name("existing-ss-group")
* .storageSyncId("existing-ss-id")
* .build());
*
* ctx.export("id", example.applyValue(getSyncGroupResult -> getSyncGroupResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getSyncGroupPlain(GetSyncGroupPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getSyncGroup:getSyncGroup", TypeShape.of(GetSyncGroupResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableArgs;
* 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 = StorageFunctions.getTable(GetTableArgs.builder()
* .name("example-table-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTable(GetTableArgs args) {
return getTable(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableArgs;
* 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 = StorageFunctions.getTable(GetTableArgs.builder()
* .name("example-table-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTablePlain(GetTablePlainArgs args) {
return getTablePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableArgs;
* 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 = StorageFunctions.getTable(GetTableArgs.builder()
* .name("example-table-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTable(GetTableArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getTable:getTable", TypeShape.of(GetTableResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableArgs;
* 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 = StorageFunctions.getTable(GetTableArgs.builder()
* .name("example-table-name")
* .storageAccountName("example-storage-account-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTablePlain(GetTablePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getTable:getTable", TypeShape.of(GetTableResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntitiesArgs;
* 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 = StorageFunctions.getTableEntities(GetTableEntitiesArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .filter("PartitionKey eq 'example'")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableEntities(GetTableEntitiesArgs args) {
return getTableEntities(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntitiesArgs;
* 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 = StorageFunctions.getTableEntities(GetTableEntitiesArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .filter("PartitionKey eq 'example'")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableEntitiesPlain(GetTableEntitiesPlainArgs args) {
return getTableEntitiesPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntitiesArgs;
* 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 = StorageFunctions.getTableEntities(GetTableEntitiesArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .filter("PartitionKey eq 'example'")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableEntities(GetTableEntitiesArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getTableEntities:getTableEntities", TypeShape.of(GetTableEntitiesResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntitiesArgs;
* 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 = StorageFunctions.getTableEntities(GetTableEntitiesArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .filter("PartitionKey eq 'example'")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableEntitiesPlain(GetTableEntitiesPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getTableEntities:getTableEntities", TypeShape.of(GetTableEntitiesResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntityArgs;
* 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 = StorageFunctions.getTableEntity(GetTableEntityArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .partitionKey("example-partition-key")
* .rowKey("example-row-key")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableEntity(GetTableEntityArgs args) {
return getTableEntity(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntityArgs;
* 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 = StorageFunctions.getTableEntity(GetTableEntityArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .partitionKey("example-partition-key")
* .rowKey("example-row-key")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableEntityPlain(GetTableEntityPlainArgs args) {
return getTableEntityPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntityArgs;
* 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 = StorageFunctions.getTableEntity(GetTableEntityArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .partitionKey("example-partition-key")
* .rowKey("example-row-key")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableEntity(GetTableEntityArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:storage/getTableEntity:getTableEntity", TypeShape.of(GetTableEntityResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Storage Table Entity.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.GetTableEntityArgs;
* 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 = StorageFunctions.getTableEntity(GetTableEntityArgs.builder()
* .storageTableId(exampleAzurermStorageTable.id())
* .partitionKey("example-partition-key")
* .rowKey("example-row-key")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableEntityPlain(GetTableEntityPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:storage/getTableEntity:getTableEntity", TypeShape.of(GetTableEntityResult.class), args, Utilities.withVersion(options));
}
}