getShare

suspend fun getShare(argument: GetSharePlainArgs): GetShareResult

Use this data source to access information about an existing File Share.

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.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()));
}
}

Return

A collection of values returned by getShare.

Parameters

argument

A collection of arguments for invoking getShare.


suspend fun getShare(acls: List<GetShareAcl>? = null, metadata: Map<String, String>? = null, name: String, storageAccountName: String): GetShareResult

Return

A collection of values returned by getShare.

See also

Parameters

acls

One or more acl blocks as defined below.

metadata

A map of custom file share metadata.

name

The name of the share.

storageAccountName

The name of the storage account.


suspend fun getShare(argument: suspend GetSharePlainArgsBuilder.() -> Unit): GetShareResult

Return

A collection of values returned by getShare.

See also

Parameters

argument

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