Pbm Compliance Manager Pbm Fetch Compliance Result
Retrieves the latest version of PbmComplianceResult objects that are available for the specified entities.
Required privileges: StorageProfile.View
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case PbmComplianceManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"entities": [
{
"objectType": "string",
"key": "string"
}
]
}
{
"entities": [
{
"_typeName": "string",
"objectType": "string",
"key": "string",
"serverUuid": "string"
}
],
"profile": {
"_typeName": "string",
"uniqueId": "string"
}
}
One or more references to storage entities. A maximum of 1000 virtual machines and/or virtual disks can be specified in a call. The results of calling the fetchComplianceResult API with more than a 1000 entities is undefined.
- If the list of entities also contains datastores, the Server will ignore the datastores.
- If the list contains valid and invalid entities, the Server ignores the invalid entities and returns results for the valid entities. Invalid entities are entities that are not in the vCenter inventory.
- If the list contains only datastores, the method throws an
InvalidArgument
fault.
Profile unique identifier.
This structure may be used only with operations rendered under /pbm
.
Array of compliance results. The returned array contains one result object for each entity specified in the method call.
[
{
"_typeName": "string",
"checkTime": "string",
"entity": {
"_typeName": "string",
"objectType": "string",
"key": "string",
"serverUuid": "string"
},
"profile": {
"_typeName": "string",
"uniqueId": "string"
},
"complianceTaskStatus": "string",
"complianceStatus": "string",
"mismatch": false,
"violatedPolicies": [
{
"_typeName": "string",
"expectedValue": {
"_typeName": "string",
"id": {
"_typeName": "string",
"namespace": "string",
"id": "string"
},
"constraint": [
{
"_typeName": "string",
"propertyInstance": [
{
"_typeName": "string",
"id": "string",
"operator": "string",
"value": {
"_typeName": "string"
}
}
]
}
]
},
"currentValue": {
"_typeName": "string",
"id": {
"_typeName": "string",
"namespace": "string",
"id": "string"
},
"constraint": [
{
"_typeName": "string",
"propertyInstance": [
{
"_typeName": "string",
"id": "string",
"operator": "string",
"value": {
"_typeName": "string"
}
}
]
}
]
}
}
],
"errorCause": [
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
],
"operationalStatus": {
"_typeName": "string",
"healthy": false,
"operationETA": "string",
"operationProgress": 0,
"transitional": false
},
"info": {
"_typeName": "string",
"label": "string",
"summary": "string",
"key": "string",
"messageCatalogKeyPrefix": "string",
"messageArg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
]
}
}
]
InvalidArgument: If one of the following situations occurs:
- You do not specify an entity.
- You specify only datastores.
- All of the specified storage entities are invalid.
PbmFault: If there is an internal server error.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}