getResource

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

Return

Resource information.

Parameters

argument

null


suspend fun getResource(apiVersion: String, parentResourcePath: String, resourceGroupName: String, resourceName: String, resourceProviderNamespace: String, resourceType: String): GetResourceResult

Return

Resource information.

Parameters

apiVersion

The API version to use for the operation.

parentResourcePath

The parent resource identity.

resourceGroupName

The name of the resource group containing the resource to get. The name is case insensitive.

resourceName

The name of the resource to get.

resourceProviderNamespace

The namespace of the resource provider.

resourceType

The resource type of the resource.

See also


suspend fun getResource(argument: suspend GetResourcePlainArgsBuilder.() -> Unit): GetResourceResult

Return

Resource information.

Parameters

argument

Builder for com.pulumi.azurenative.resources.kotlin.inputs.GetResourcePlainArgs.

See also