Share via


Vm Instance Hybrid Identity Metadata - List

Implements GET HybridIdentityMetadata in a vm.
Returns the list of HybridIdentityMetadata of the given vm.

GET https://management.azure.com/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata?api-version=2023-12-01

URI Parameters

Name In Required Type Description
resourceUri
path True

string

The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

VmInstanceHybridIdentityMetadataList

Success

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

HybridIdentityMetadataListByVm

Sample request

GET https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata?api-version=2023-12-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/default/hybridIdentityMetadata/default",
      "name": "testItem",
      "type": "Microsoft.ConnectedVMwarevSphere/VirtualMachineInstances/hybridIdentityMetadata",
      "properties": {
        "resourceUid": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c",
        "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2"
      }
    }
  ]
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ProvisioningState

Gets the provisioning state.

systemData

Metadata pertaining to creation and last modification of the resource.

VmInstanceHybridIdentityMetadata

Defines the HybridIdentityMetadata.

VmInstanceHybridIdentityMetadataList

List of HybridIdentityMetadata.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ProvisioningState

Gets the provisioning state.

Value Description
Succeeded
Failed
Canceled
Provisioning
Updating
Deleting
Accepted
Created

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

VmInstanceHybridIdentityMetadata

Defines the HybridIdentityMetadata.

Name Type Description
id

string (arm-id)

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties.provisioningState

ProvisioningState

Gets the provisioning state.

properties.publicKey

string

Gets or sets the Public Key.

properties.resourceUid

string

The unique identifier for the resource.

systemData

systemData

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"

VmInstanceHybridIdentityMetadataList

List of HybridIdentityMetadata.

Name Type Description
nextLink

string

Url to follow for getting next page of HybridIdentityMetadata.

value

VmInstanceHybridIdentityMetadata[]

Array of HybridIdentityMetadata