This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
azure-native.resources.getResource
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
Gets a resource. Azure REST API version: 2022-09-01.
Other available API versions: 2015-11-01, 2023-07-01, 2024-03-01, 2024-07-01.
Using getResource
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResource(args: GetResourceArgs, opts?: InvokeOptions): Promise<GetResourceResult>
function getResourceOutput(args: GetResourceOutputArgs, opts?: InvokeOptions): Output<GetResourceResult>def get_resource(parent_resource_path: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 resource_name: Optional[str] = None,
                 resource_provider_namespace: Optional[str] = None,
                 resource_type: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetResourceResult
def get_resource_output(parent_resource_path: Optional[pulumi.Input[str]] = None,
                 resource_group_name: Optional[pulumi.Input[str]] = None,
                 resource_name: Optional[pulumi.Input[str]] = None,
                 resource_provider_namespace: Optional[pulumi.Input[str]] = None,
                 resource_type: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetResourceResult]func LookupResource(ctx *Context, args *LookupResourceArgs, opts ...InvokeOption) (*LookupResourceResult, error)
func LookupResourceOutput(ctx *Context, args *LookupResourceOutputArgs, opts ...InvokeOption) LookupResourceResultOutput> Note: This function is named LookupResource in the Go SDK.
public static class GetResource 
{
    public static Task<GetResourceResult> InvokeAsync(GetResourceArgs args, InvokeOptions? opts = null)
    public static Output<GetResourceResult> Invoke(GetResourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourceResult> getResource(GetResourceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure-native:resources:getResource
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ParentResource stringPath 
- The parent resource identity.
- ResourceGroup stringName 
- The name of the resource group containing the resource to get. The name is case insensitive.
- ResourceName string
- The name of the resource to get.
- ResourceProvider stringNamespace 
- The namespace of the resource provider.
- ResourceType string
- The resource type of the resource.
- ParentResource stringPath 
- The parent resource identity.
- ResourceGroup stringName 
- The name of the resource group containing the resource to get. The name is case insensitive.
- ResourceName string
- The name of the resource to get.
- ResourceProvider stringNamespace 
- The namespace of the resource provider.
- ResourceType string
- The resource type of the resource.
- parentResource StringPath 
- The parent resource identity.
- resourceGroup StringName 
- The name of the resource group containing the resource to get. The name is case insensitive.
- resourceName String
- The name of the resource to get.
- resourceProvider StringNamespace 
- The namespace of the resource provider.
- resourceType String
- The resource type of the resource.
- parentResource stringPath 
- The parent resource identity.
- resourceGroup stringName 
- The name of the resource group containing the resource to get. The name is case insensitive.
- resourceName string
- The name of the resource to get.
- resourceProvider stringNamespace 
- The namespace of the resource provider.
- resourceType string
- The resource type of the resource.
- parent_resource_ strpath 
- The parent resource identity.
- resource_group_ strname 
- The name of the resource group containing the resource to get. The name is case insensitive.
- resource_name str
- The name of the resource to get.
- resource_provider_ strnamespace 
- The namespace of the resource provider.
- resource_type str
- The resource type of the resource.
- parentResource StringPath 
- The parent resource identity.
- resourceGroup StringName 
- The name of the resource group containing the resource to get. The name is case insensitive.
- resourceName String
- The name of the resource to get.
- resourceProvider StringNamespace 
- The namespace of the resource provider.
- resourceType String
- The resource type of the resource.
getResource Result
The following output properties are available:
- Id string
- Resource ID
- Name string
- Resource name
- Properties object
- The resource properties.
- Type string
- Resource type
- ExtendedLocation Pulumi.Azure Native. Resources. Outputs. Extended Location Response 
- Resource extended location.
- Identity
Pulumi.Azure Native. Resources. Outputs. Identity Response 
- The identity of the resource.
- Kind string
- The kind of the resource.
- Location string
- Resource location
- ManagedBy string
- ID of the resource that manages this resource.
- Plan
Pulumi.Azure Native. Resources. Outputs. Plan Response 
- The plan of the resource.
- Sku
Pulumi.Azure Native. Resources. Outputs. Sku Response 
- The SKU of the resource.
- Dictionary<string, string>
- Resource tags
- Id string
- Resource ID
- Name string
- Resource name
- Properties interface{}
- The resource properties.
- Type string
- Resource type
- ExtendedLocation ExtendedLocation Response 
- Resource extended location.
- Identity
IdentityResponse 
- The identity of the resource.
- Kind string
- The kind of the resource.
- Location string
- Resource location
- ManagedBy string
- ID of the resource that manages this resource.
- Plan
PlanResponse 
- The plan of the resource.
- Sku
SkuResponse 
- The SKU of the resource.
- map[string]string
- Resource tags
- id String
- Resource ID
- name String
- Resource name
- properties Object
- The resource properties.
- type String
- Resource type
- extendedLocation ExtendedLocation Response 
- Resource extended location.
- identity
IdentityResponse 
- The identity of the resource.
- kind String
- The kind of the resource.
- location String
- Resource location
- managedBy String
- ID of the resource that manages this resource.
- plan
PlanResponse 
- The plan of the resource.
- sku
SkuResponse 
- The SKU of the resource.
- Map<String,String>
- Resource tags
- id string
- Resource ID
- name string
- Resource name
- properties any
- The resource properties.
- type string
- Resource type
- extendedLocation ExtendedLocation Response 
- Resource extended location.
- identity
IdentityResponse 
- The identity of the resource.
- kind string
- The kind of the resource.
- location string
- Resource location
- managedBy string
- ID of the resource that manages this resource.
- plan
PlanResponse 
- The plan of the resource.
- sku
SkuResponse 
- The SKU of the resource.
- {[key: string]: string}
- Resource tags
- id str
- Resource ID
- name str
- Resource name
- properties Any
- The resource properties.
- type str
- Resource type
- extended_location ExtendedLocation Response 
- Resource extended location.
- identity
IdentityResponse 
- The identity of the resource.
- kind str
- The kind of the resource.
- location str
- Resource location
- managed_by str
- ID of the resource that manages this resource.
- plan
PlanResponse 
- The plan of the resource.
- sku
SkuResponse 
- The SKU of the resource.
- Mapping[str, str]
- Resource tags
- id String
- Resource ID
- name String
- Resource name
- properties Any
- The resource properties.
- type String
- Resource type
- extendedLocation Property Map
- Resource extended location.
- identity Property Map
- The identity of the resource.
- kind String
- The kind of the resource.
- location String
- Resource location
- managedBy String
- ID of the resource that manages this resource.
- plan Property Map
- The plan of the resource.
- sku Property Map
- The SKU of the resource.
- Map<String>
- Resource tags
Supporting Types
ExtendedLocationResponse  
IdentityResponse 
- PrincipalId string
- The principal ID of resource identity.
- TenantId string
- The tenant ID of resource.
- Type string
- The identity type.
- UserAssigned Dictionary<string, Pulumi.Identities Azure Native. Resources. Inputs. Identity Response User Assigned Identities> 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- PrincipalId string
- The principal ID of resource identity.
- TenantId string
- The tenant ID of resource.
- Type string
- The identity type.
- UserAssigned map[string]IdentityIdentities Response User Assigned Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId String
- The principal ID of resource identity.
- tenantId String
- The tenant ID of resource.
- type String
- The identity type.
- userAssigned Map<String,IdentityIdentities Response User Assigned Identities> 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId string
- The principal ID of resource identity.
- tenantId string
- The tenant ID of resource.
- type string
- The identity type.
- userAssigned {[key: string]: IdentityIdentities Response User Assigned Identities} 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal_id str
- The principal ID of resource identity.
- tenant_id str
- The tenant ID of resource.
- type str
- The identity type.
- user_assigned_ Mapping[str, Identityidentities Response User Assigned Identities] 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principalId String
- The principal ID of resource identity.
- tenantId String
- The tenant ID of resource.
- type String
- The identity type.
- userAssigned Map<Property Map>Identities 
- The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
IdentityResponseUserAssignedIdentities    
- ClientId string
- The client id of user assigned identity.
- PrincipalId string
- The principal id of user assigned identity.
- ClientId string
- The client id of user assigned identity.
- PrincipalId string
- The principal id of user assigned identity.
- clientId String
- The client id of user assigned identity.
- principalId String
- The principal id of user assigned identity.
- clientId string
- The client id of user assigned identity.
- principalId string
- The principal id of user assigned identity.
- client_id str
- The client id of user assigned identity.
- principal_id str
- The principal id of user assigned identity.
- clientId String
- The client id of user assigned identity.
- principalId String
- The principal id of user assigned identity.
PlanResponse 
- Name string
- The plan ID.
- Product string
- The offer ID.
- PromotionCode string
- The promotion code.
- Publisher string
- The publisher ID.
- Version string
- The plan's version.
- Name string
- The plan ID.
- Product string
- The offer ID.
- PromotionCode string
- The promotion code.
- Publisher string
- The publisher ID.
- Version string
- The plan's version.
- name String
- The plan ID.
- product String
- The offer ID.
- promotionCode String
- The promotion code.
- publisher String
- The publisher ID.
- version String
- The plan's version.
- name string
- The plan ID.
- product string
- The offer ID.
- promotionCode string
- The promotion code.
- publisher string
- The publisher ID.
- version string
- The plan's version.
- name str
- The plan ID.
- product str
- The offer ID.
- promotion_code str
- The promotion code.
- publisher str
- The publisher ID.
- version str
- The plan's version.
- name String
- The plan ID.
- product String
- The offer ID.
- promotionCode String
- The promotion code.
- publisher String
- The publisher ID.
- version String
- The plan's version.
SkuResponse 
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi