Get the compliancy of a given environment
Request
GET https://{hostname}:{port}
/cli/environment/compliancy?{parameters}
Accept: {contentType}
Parameter | Type | Required | Description |
---|---|---|---|
environment | string | true | Name or ID of environment |
application | string | false | Name or ID of application (required if environment is specified by name) |
Parameter | Type | Required | Description |
---|---|---|---|
Accept |
|
true |
Example
udclient -username admin -password admin
-weburl https://myserver.example.com:8443
loadenvironmentcompliancyapp
-application JPetStore
-environment "Tutorial environment 1"
Example response
{
"id": "1f97af86-cde3-4ba2-803b-0e4580dcc05b",
"name": "Tutorial environment 1",
"description": "",
"compliancy": {
"missingCount": 0,
"correctCount": 3,
"desiredCount": 3
}
}
Note: Here, the
missingCount
is the number of component versions missing
from the actual inventory in comparison to the desired inventory. The
correctCount
means the number of actual inventory and the
desiredCount
is the number of desired inventory. Related CLI command: loadEnvironmentCompliancyapp.