get Storage Container
Use this data source to access information about an existing Storage Container.
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.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());
}
}
Content copied to clipboard
Return
A collection of values returned by getStorageContainer.
Parameters
argument
A collection of arguments for invoking getStorageContainer.
suspend fun getStorageContainer(metadata: Map<String, String>? = null, name: String, storageAccountName: String): GetStorageContainerResult
Return
A collection of values returned by getStorageContainer.
See also
Parameters
metadata
A mapping of MetaData for this Container.
name
The name of the Container.
storage Account Name
The name of the Storage Account where the Container exists.
suspend fun getStorageContainer(argument: suspend GetStorageContainerPlainArgsBuilder.() -> Unit): GetStorageContainerResult
Return
A collection of values returned by getStorageContainer.
See also
Parameters
argument
Builder for com.pulumi.azure.storage.kotlin.inputs.GetStorageContainerPlainArgs.