Returns the inventory information about the partitions of the managed systems.
Important: The versions v1 and v2 have the same response syntax. The information explained in this document uses the latest version v2. To use version v1 of this API, replace v2 by v1.
Resource Information
Response formats | JSON |
Requires authentication? | Yes |
Rate limited? | All API calls are automatically rate limited to a maximum of 10 calls per second. |
Request Syntax
- For all partitions of a particular managed system:
GET /v2/inventory/cmc/ManagedSystem/{ms-uuid}/Partition - For a particular partition of a particular managed system:
GET /v2/inventory/cmc/ManagedSystem/{ms-uuid}/Partition/{lpar-uuid}
URI Request Parameters
The request uses the following URI parameters:
Parameter | Required? | Description |
ms-uuid | Yes | The UUID of the managed system. |
lpar-uuid | Optional | The UUID of the LPAR. If you do not specify a UUID, the details of all the partitions are displayed. |
Notes:
- If you have enabled the attribute masking feature, the values of the resource attributes will be masked in the API response.
- Attribute Masking is available with HMC V1040 and later.
- If you have enabled Data Filtering, the values of the attributes selected for filtering will be filtered out, and the API response will contain an empty string for that attribute.
Request headers
Authenticate the API by completing the following steps:
- Set your client ID value in the X-CMC-Client-Id header in every request.
- Set the client secret value in the X-CMC-Client-Secret header in every request.
To form the CMC API full URL, append the relative path of the endpoint you want to use to the Base URL.
Example: https://<base-url>/api/public/v2/inventory/ManagedSystem/{ms-uuid}/Partition/{lpar-uuid}
Request body
This request does not have a request body.
Response Syntax and Description
To review the response schema and for information about the parameters, see Response schema and parameter description for /inventory/cmc/ManagedSystem/Partition.
Errors
The following errors are the common errors for this API:
NotFoundException
The requested resource is not found. Make sure that the request URI is correct.
HTTP Status Code: 404
TooManyRequestsException
The request has reached its throttling limit. Retry after the specified time.
HTTP Status Code: 429
UnauthorizedException
The request is denied because the caller has insufficient permissions.
HTTP Status Code: 401
Sample Request
Review the following examples to understand how the API request and response work.
Sample request for all partitions of a managed system
GET /api/public/v2/inventory/cmc/ManagedSystem/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Partition HTTP/1.1
Host: xxxxxxxxxxxx.powercmc.com
x-cmc-client-id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
x-cmc-client-secret: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Sample request for a particular partition of the managed system
GET /api/public/v2/inventory/cmc/ManagedSystem/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Partition/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx HTTP/1.1
Host: xxxxxxxxxxxx.powercmc.com
x-cmc-client-id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
x-cmc-client-secret: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Sample Response
The following response is a sample response for a particular partition of a particular managed system.
{
"Partitions": [
{
"AssociatedProcessorPool": {
"PoolID": "0",
"PoolName": "xxxxxxxx"
},
"OSType": "AIX",
"OSVersion": "Unknown",
"ID": "31",
"MemoryConfiguration": {
"SharedMemoryEnabled": "false",
"CurrentMemory": 2
},
"Name": "xxxxxxxx",
"ProcessorConfiguration": {
"ProcessorMode": "shared",
"AllocatedVirtualProcessors": 1,
"CurrentProcessingUnits": 0.05
},
"State": "running",
"PartitionType": "AIX",
"UUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"RMCState": "none",
"Tags": [
{
"Name": "Test"
}
],
"VirtualSerialNumber": "none",
"Description": "",
"PowerVMManagementCapable": "false"
}
]
}
Comments
0 comments
Please sign in to leave a comment.