Get Policies Using GET

Get Policies Using GET

Find all the policies associated with current org.

Request
URI
GET
https://{api_host}//api.mgmt.cloud.vmware.com/policy/api/policies
COPY
Query Parameters
boolean
computeStats
Optional

computeStats

boolean
expandDefinition
Optional

Retrieves the schema for this policy type

integer
page
Optional

Results page you want to retrieve (0..N)

string
search
Optional

Matches will start with this string in their name or have this string somewhere in their description.

integer
size
Optional

Number of records per page.

size example
20
string of array
sort
Optional

Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.


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