getDisk

suspend fun getDisk(argument: GetDiskPlainArgs): GetDiskResult

Gets information about a disk. Uses Azure REST API version 2024-03-02. Other available API versions: 2022-07-02, 2023-01-02, 2023-04-02, 2023-10-02. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

Disk resource.

Parameters

argument

null


suspend fun getDisk(diskName: String, resourceGroupName: String): GetDiskResult

Return

Disk resource.

Parameters

diskName

The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.

resourceGroupName

The name of the resource group.

See also


suspend fun getDisk(argument: suspend GetDiskPlainArgsBuilder.() -> Unit): GetDiskResult

Return

Disk resource.

Parameters

argument

Builder for com.pulumi.azurenative.compute.kotlin.inputs.GetDiskPlainArgs.

See also