Get All Management Agents
You can get a collection resource representation of all management agents.
Required Privileges
To perform this task, a user must have one of the following roles assigned: Portal Administrator, Service Provider Global Administrator, Service Provider Administrator, Company Owner, Company Administrator.
Request
To get a representation of all management agents, send the GET HTTP request to the URL of the /infrastructure/managementAgents collection.
HTTP Request
GET https://<hostname>:1280/api/v3/infrastructure/managementAgents |
Request Headers
The request contains the following headers.
Header | Required/Optional | Value | Description |
Authorization | Required | Bearer <Access-Token> | Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format. |
Accept | Optional | application/json | Specifies a media type of representation that is required in the response message. If the requested type is not supported, the server will return the response in the application/json media type. |
Request parameters
A list of parameters that are applicable for this operation:
Name | In | Type | Required | Default | Description |
---|---|---|---|---|---|
limit | Query | Integer (int32) | No | 100 | Specifies the first N resources that must be returned in the output |
offset | Query | Integer (int32) | No | 0 | Excludes the first N resources from the query output |
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
In the response body, Veeam Service Provider Console returns a collection resource representation based on the ManagementAgent schema.
Example
The following request returns a representation of all management agents.
Request: GET https://localhost:1280/api/v3/infrastructure/managementAgents
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 OK
Response Body: { "meta": { "pagingInfo": { "total": 2, "count": 2, "offset": 0 } }, "data": [ { "instanceUid": "922c344c-ab7c-4eb4-ad1e-47a4be629dd2", "locationUid": "df27589d-7be6-4d19-89fe-784b4944d1cd", "organizationUid": "b1e89211-ec26-4501-8240-c998c8d59fd2", "hostName": "srv03", "lastHearbeatTime": "2020-03-08T04:45:24.6448708+03:00", "version": "4.0.0.4859", "discoveryTime": "2020-03-08T03:47:20.784655+03:00", "customNotes": "", "status": "healthy", "type": "cloudConnect", "computerInfo": { "uniqueUid": "0c8d53e5-a4fd-4cb7-8dba-1a5edd6a0ec7", "biosUuid": "7a570fb0-e172-4275-a487-ba9ffcda2f66", "hostName": "srv03", "fqdn": "srv03.prod.local", "guestOs": "Microsoft Windows Server 2016 Standard", "guestOsType": "server", "guestOsVersion": "10.0.14393", "guestOsSku": 7, "platformType": "vSphere", "ipAddresses": [ "172.24.152.151" ], "macAddresses": [ "00:50:56:BB:09:48" ] }, "connectionStatus": "online", "isRebootRequired": false, "connectionAcount": null, "versionStatus": "upToDate", "role": "client" }, { "instanceUid": "1b61935d-a246-4f7a-92f1-d91e687bcacc", "locationUid": "19ac62ff-ca2e-49e6-9876-d0e73c5ef55e", "organizationUid": "c7ff520f-e9b3-4a58-8f74-56dfc0711337", "hostName": "srv05", "lastHearbeatTime": "2020-03-08T04:46:11.3828418+03:00", "version": "4.0.0.4859", "discoveryTime": "2020-03-08T03:48:10.5618253+03:00", "customNotes": "", "status": "restarting", "type": "cloudConnect", "computerInfo": { "uniqueUid": "408bed7a-08c8-4883-93c7-acc27a4589ae", "biosUuid": "053c1add-8cd9-4499-9d0b-042e10a25a00", "hostName": "srv05", "fqdn": "srv05.prod.local", "guestOs": "Microsoft Windows Server 2016 Datacenter", "guestOsType": "server", "guestOsVersion": "10.0.14393", "guestOsSku": 8, "platformType": "vSphere", "ipAddresses": [ "172.24.151.115" ], "macAddresses": [ "00:50:56:BB:BD:76" ] }, "connectionStatus": "online", "isRebootRequired": false, "connectionAcount": null, "versionStatus": "upToDate", "role": "client" } ] } |