Get Policy Using GET

Get Policy Using GET

Find a specific policy based on the input policy id.

Request
URI
GET
https://{api_host}//api.mgmt.cloud.vmware.com/policy/api/policies/{id}
COPY
Path Parameters
string
id
Required

Policy ID

Query Parameters
boolean
computeStats
Optional

computeStats

boolean
expandCriteriaLegend
Optional

Augments Criteria in returned object with legend data structures for translation between IDs and human readable DataElements


Responses
200

OK

Returns Policy of type(s) */*
{
    "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

criteria
Optional

criteria

object
definition
Optional

definition

string
description
Optional

description

string
enforcementType
Optional

enforcementType

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

statistics
Optional

statistics

string
typeId
Optional

typeId


401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure