Agents - List

Lists all Agents in a Storage Mover.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents?api-version=2023-10-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

storageMoverName
path True

string

The name of the Storage Mover resource.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

AgentList

The list of Agents.

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

Agents_List

Sample Request

GET https://management.azure.com/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents?api-version=2023-10-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName1",
      "name": "examples-agentName1",
      "type": "Microsoft.StorageMover/storageMovers/agents",
      "systemData": {
        "createdBy": "string",
        "createdByType": "User",
        "createdAt": "2023-07-01T01:01:01.1075056Z",
        "lastModifiedBy": "string",
        "lastModifiedByType": "User",
        "lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
      },
      "properties": {
        "arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName1",
        "description": "Example Agent 1 Description",
        "agentVersion": "1.0.0",
        "agentStatus": "Online",
        "arcVmUuid": "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9",
        "lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
        "localIPAddress": "192.168.0.0",
        "memoryInMB": 100024,
        "numberOfCores": 32,
        "uptimeInSeconds": 522,
        "errorDetails": null
      }
    },
    {
      "id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName2",
      "name": "examples-agentName2",
      "type": "Microsoft.StorageMover/storageMovers/agents",
      "systemData": {
        "createdBy": "string",
        "createdByType": "User",
        "createdAt": "2023-07-01T01:01:01.1075056Z",
        "lastModifiedBy": "string",
        "lastModifiedByType": "User",
        "lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
      },
      "properties": {
        "arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName2",
        "description": "Example Agent 2 Description",
        "agentVersion": "1.0.0",
        "agentStatus": "Online",
        "arcVmUuid": "147a1f84-7bbf-4e99-9a6a-a1735a91dfd5",
        "lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
        "localIPAddress": "192.168.0.0",
        "memoryInMB": 100024,
        "numberOfCores": 32,
        "uptimeInSeconds": 522,
        "errorDetails": null
      }
    },
    {
      "id": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName3",
      "name": "examples-agentName3",
      "type": "Microsoft.StorageMover/storageMovers/agents",
      "systemData": {
        "createdBy": "string",
        "createdByType": "User",
        "createdAt": "2023-07-01T01:01:01.1075056Z",
        "lastModifiedBy": "string",
        "lastModifiedByType": "User",
        "lastModifiedAt": "2023-07-01T02:01:01.1075056Z"
      },
      "properties": {
        "arcResourceId": "/subscriptions/60bcfc77-6589-4da2-b7fd-f9ec9322cf95/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName3",
        "description": "Example Agent 3 Description",
        "agentVersion": "1.0.0",
        "agentStatus": "Online",
        "arcVmUuid": "648a7958-f99e-4268-b20e-94c96558dc0d",
        "lastStatusUpdate": "2023-07-01T02:21:01.1075056Z",
        "localIPAddress": "192.168.0.0",
        "memoryInMB": 100024,
        "numberOfCores": 32,
        "uptimeInSeconds": 522,
        "errorDetails": {
          "code": "SampleErrorCode",
          "message": "Detailed sample error message."
        }
      }
    }
  ],
  "nextLink": "https://management.azure.com/providers/Microsoft.StorageMover/storageMovers?$skiptoken={token}"
}

Definitions

Name Description
Agent

The Agent resource.

AgentList

List of Agents.

AgentStatus

The Agent status.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorDetails
ErrorResponse

Error response

ProvisioningState

The provisioning state of this resource.

systemData

Metadata pertaining to creation and last modification of the resource.

Agent

The Agent resource.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties.agentStatus

AgentStatus

The Agent status.

properties.agentVersion

string

The Agent version.

properties.arcResourceId

string

The fully qualified resource ID of the Hybrid Compute resource for the Agent.

properties.arcVmUuid

string

The VM UUID of the Hybrid Compute resource for the Agent.

properties.description

string

A description for the Agent.

properties.errorDetails

ErrorDetails

properties.lastStatusUpdate

string

The last updated time of the Agent status.

properties.localIPAddress

string

Local IP address reported by the Agent.

properties.memoryInMB

integer

Available memory reported by the Agent, in MB.

properties.numberOfCores

integer

Available compute cores reported by the Agent.

properties.provisioningState

ProvisioningState

The provisioning state of this resource.

properties.uptimeInSeconds

integer

Uptime of the Agent in seconds.

systemData

systemData

Resource system metadata.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

AgentList

List of Agents.

Name Type Description
nextLink

string

Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.

value

Agent[]

The Agent resource.

AgentStatus

The Agent status.

Name Type Description
Executing

string

Offline

string

Online

string

Registering

string

RequiresAttention

string

Unregistering

string

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

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.

ErrorDetails

Name Type Description
code

string

Error code reported by Agent

message

string

Expanded description of reported error code

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ProvisioningState

The provisioning state of this resource.

Name Type Description
Succeeded

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

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

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.