Dry Run Policy Using POST 1

Dry Run Policy Using POST 1

Dry-run an existing policy to rehearse actual policy effect on application.

Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/policy/api/policies
COPY
Query Parameters
string
dryRun
Required

dryRun


Request Body

The policy to be created

Policy of type(s) application/json
Optional
{
    "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

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

statistics
Optional

statistics

string
typeId
Optional

typeId

Responses
200

OK

Operation doesn't return any data structure