1. Packages
  2. Azure Native
  3. API Docs
  4. edge
  5. getTarget
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

azure-native.edge.getTarget

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

    Get a Target Resource

    Uses Azure REST API version 2025-06-01.

    Using getTarget

    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 getTarget(args: GetTargetArgs, opts?: InvokeOptions): Promise<GetTargetResult>
    function getTargetOutput(args: GetTargetOutputArgs, opts?: InvokeOptions): Output<GetTargetResult>
    def get_target(resource_group_name: Optional[str] = None,
                   target_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetTargetResult
    def get_target_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                   target_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetTargetResult]
    func LookupTarget(ctx *Context, args *LookupTargetArgs, opts ...InvokeOption) (*LookupTargetResult, error)
    func LookupTargetOutput(ctx *Context, args *LookupTargetOutputArgs, opts ...InvokeOption) LookupTargetResultOutput

    > Note: This function is named LookupTarget in the Go SDK.

    public static class GetTarget 
    {
        public static Task<GetTargetResult> InvokeAsync(GetTargetArgs args, InvokeOptions? opts = null)
        public static Output<GetTargetResult> Invoke(GetTargetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTargetResult> getTarget(GetTargetArgs args, InvokeOptions options)
    public static Output<GetTargetResult> getTarget(GetTargetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:edge:getTarget
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    TargetName string
    Name of the target
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    TargetName string
    Name of the target
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    targetName String
    Name of the target
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    targetName string
    Name of the target
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    target_name str
    Name of the target
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    targetName String
    Name of the target

    getTarget Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Location string
    The geo-location where the resource lives
    Name string
    The name of the resource
    Properties Pulumi.AzureNative.Edge.Outputs.TargetPropertiesResponse
    The resource-specific properties for this resource.
    SystemData Pulumi.AzureNative.Edge.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ExtendedLocation Pulumi.AzureNative.Edge.Outputs.AzureResourceManagerCommonTypesExtendedLocationResponse
    The complex type of the extended location.
    Tags Dictionary<string, string>
    Resource tags.
    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Location string
    The geo-location where the resource lives
    Name string
    The name of the resource
    Properties TargetPropertiesResponse
    The resource-specific properties for this resource.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ExtendedLocation AzureResourceManagerCommonTypesExtendedLocationResponse
    The complex type of the extended location.
    Tags map[string]string
    Resource tags.
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    location String
    The geo-location where the resource lives
    name String
    The name of the resource
    properties TargetPropertiesResponse
    The resource-specific properties for this resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    extendedLocation AzureResourceManagerCommonTypesExtendedLocationResponse
    The complex type of the extended location.
    tags Map<String,String>
    Resource tags.
    azureApiVersion string
    The Azure API version of the resource.
    eTag string
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    location string
    The geo-location where the resource lives
    name string
    The name of the resource
    properties TargetPropertiesResponse
    The resource-specific properties for this resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    extendedLocation AzureResourceManagerCommonTypesExtendedLocationResponse
    The complex type of the extended location.
    tags {[key: string]: string}
    Resource tags.
    azure_api_version str
    The Azure API version of the resource.
    e_tag str
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    location str
    The geo-location where the resource lives
    name str
    The name of the resource
    properties TargetPropertiesResponse
    The resource-specific properties for this resource.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    extended_location AzureResourceManagerCommonTypesExtendedLocationResponse
    The complex type of the extended location.
    tags Mapping[str, str]
    Resource tags.
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    location String
    The geo-location where the resource lives
    name String
    The name of the resource
    properties Property Map
    The resource-specific properties for this resource.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    extendedLocation Property Map
    The complex type of the extended location.
    tags Map<String>
    Resource tags.

    Supporting Types

    AzureResourceManagerCommonTypesExtendedLocationResponse

    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    Name string
    The name of the extended location.
    Type string
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.
    name string
    The name of the extended location.
    type string
    The type of the extended location.
    name str
    The name of the extended location.
    type str
    The type of the extended location.
    name String
    The name of the extended location.
    type String
    The type of the extended location.

    ComponentStatusResponse

    Name string
    Component name
    Status string
    Component status
    Name string
    Component name
    Status string
    Component status
    name String
    Component name
    status String
    Component status
    name string
    Component name
    status string
    Component status
    name str
    Component name
    status str
    Component status
    name String
    Component name
    status String
    Component status

    DeploymentStatusResponse

    Deployed int
    Indicates if Instance is deployed
    ExpectedRunningJobId int
    The expected running job id
    Generation int
    Deployment Generation
    LastModified string
    The lastModified of the Status
    RunningJobId int
    The running job id
    Status string
    Deployment status
    StatusDetails string
    Status details
    TargetStatuses List<Pulumi.AzureNative.Edge.Inputs.TargetStatusResponse>
    Target resource statuses
    Deployed int
    Indicates if Instance is deployed
    ExpectedRunningJobId int
    The expected running job id
    Generation int
    Deployment Generation
    LastModified string
    The lastModified of the Status
    RunningJobId int
    The running job id
    Status string
    Deployment status
    StatusDetails string
    Status details
    TargetStatuses []TargetStatusResponse
    Target resource statuses
    deployed Integer
    Indicates if Instance is deployed
    expectedRunningJobId Integer
    The expected running job id
    generation Integer
    Deployment Generation
    lastModified String
    The lastModified of the Status
    runningJobId Integer
    The running job id
    status String
    Deployment status
    statusDetails String
    Status details
    targetStatuses List<TargetStatusResponse>
    Target resource statuses
    deployed number
    Indicates if Instance is deployed
    expectedRunningJobId number
    The expected running job id
    generation number
    Deployment Generation
    lastModified string
    The lastModified of the Status
    runningJobId number
    The running job id
    status string
    Deployment status
    statusDetails string
    Status details
    targetStatuses TargetStatusResponse[]
    Target resource statuses
    deployed int
    Indicates if Instance is deployed
    expected_running_job_id int
    The expected running job id
    generation int
    Deployment Generation
    last_modified str
    The lastModified of the Status
    running_job_id int
    The running job id
    status str
    Deployment status
    status_details str
    Status details
    target_statuses Sequence[TargetStatusResponse]
    Target resource statuses
    deployed Number
    Indicates if Instance is deployed
    expectedRunningJobId Number
    The expected running job id
    generation Number
    Deployment Generation
    lastModified String
    The lastModified of the Status
    runningJobId Number
    The running job id
    status String
    Deployment status
    statusDetails String
    Status details
    targetStatuses List<Property Map>
    Target resource statuses

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    TargetPropertiesResponse

    Capabilities List<string>
    List of capabilities
    ContextId string
    ArmId of Context
    Description string
    Description of target
    DisplayName string
    Display name of target
    HierarchyLevel string
    Hierarchy Level
    ProvisioningState string
    Provisioning state of resource
    Status Pulumi.AzureNative.Edge.Inputs.DeploymentStatusResponse
    Status of target
    TargetSpecification object
    target spec
    SolutionScope string
    Scope of the target resource
    State string
    State of resource
    Capabilities []string
    List of capabilities
    ContextId string
    ArmId of Context
    Description string
    Description of target
    DisplayName string
    Display name of target
    HierarchyLevel string
    Hierarchy Level
    ProvisioningState string
    Provisioning state of resource
    Status DeploymentStatusResponse
    Status of target
    TargetSpecification interface{}
    target spec
    SolutionScope string
    Scope of the target resource
    State string
    State of resource
    capabilities List<String>
    List of capabilities
    contextId String
    ArmId of Context
    description String
    Description of target
    displayName String
    Display name of target
    hierarchyLevel String
    Hierarchy Level
    provisioningState String
    Provisioning state of resource
    status DeploymentStatusResponse
    Status of target
    targetSpecification Object
    target spec
    solutionScope String
    Scope of the target resource
    state String
    State of resource
    capabilities string[]
    List of capabilities
    contextId string
    ArmId of Context
    description string
    Description of target
    displayName string
    Display name of target
    hierarchyLevel string
    Hierarchy Level
    provisioningState string
    Provisioning state of resource
    status DeploymentStatusResponse
    Status of target
    targetSpecification any
    target spec
    solutionScope string
    Scope of the target resource
    state string
    State of resource
    capabilities Sequence[str]
    List of capabilities
    context_id str
    ArmId of Context
    description str
    Description of target
    display_name str
    Display name of target
    hierarchy_level str
    Hierarchy Level
    provisioning_state str
    Provisioning state of resource
    status DeploymentStatusResponse
    Status of target
    target_specification Any
    target spec
    solution_scope str
    Scope of the target resource
    state str
    State of resource
    capabilities List<String>
    List of capabilities
    contextId String
    ArmId of Context
    description String
    Description of target
    displayName String
    Display name of target
    hierarchyLevel String
    Hierarchy Level
    provisioningState String
    Provisioning state of resource
    status Property Map
    Status of target
    targetSpecification Any
    target spec
    solutionScope String
    Scope of the target resource
    state String
    State of resource

    TargetStatusResponse

    ComponentStatuses []ComponentStatusResponse
    Component statuses
    Name string
    Target name
    Status string
    Target status
    componentStatuses List<ComponentStatusResponse>
    Component statuses
    name String
    Target name
    status String
    Target status
    componentStatuses ComponentStatusResponse[]
    Component statuses
    name string
    Target name
    status string
    Target status
    component_statuses Sequence[ComponentStatusResponse]
    Component statuses
    name str
    Target name
    status str
    Target status
    componentStatuses List<Property Map>
    Component statuses
    name String
    Target name
    status String
    Target status

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi