Get Policy Using GET 3
Find a specific policy based on the input policy id.
Request
URI
GET
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/policy/api/policies/{id}
COPY
Path Parameters
string
id
Required
Policy ID
Query Parameters
boolean
computeStats
Optional
computeStats
Responses
200
OK
Returns Policy of type(s) application/json
{
"createdAt": "string",
"createdBy": "string",
"criteria": {
"matchExpression": [
{}
]
},
"description": "string",
"enforcementType": "string",
"id": "string",
"lastUpdatedAt": "string",
"lastUpdatedBy": "string",
"name": "string",
"orgId": "string",
"projectId": "string",
"statistics": {
"conflictCount": 0,
"enforcedCount": 0,
"notEnforcedCount": 0
},
"typeId": "string"
}
string As date-time As date-time
createdAt
Optional
createdAt
string
createdBy
Optional
createdBy
object
definition
Optional
definition
object
definitionLegend
Optional
definitionLegend
string
description
Optional
description
string
enforcementType
Optional
Defines enforcement type for policy. Default is HARD
Possible values are : SOFT, HARD,
string As uuid As uuid
id
Optional
id
string As date-time As date-time
lastUpdatedAt
Optional
lastUpdatedAt
string
lastUpdatedBy
Optional
lastUpdatedBy
string
name
Optional
name
string
orgId
Optional
orgId
string
projectId
Optional
projectId
string
typeId
Optional
typeId