Create Policy

Create Policy

Create policy

Request
URI
POST
https://{api_host}/vco/api/policies
COPY
Request Body
policy of type(s) application/json
Required
"policy Object"
array of object
policy-item
Optional

policy-item

string
startup
Optional

startup

Possible values are : MANUAL, AUTOMATIC,
array of object
parameter
Optional

parameter

string
name
Required
Constraints: minLength: 1 maxLength: 100

name

string
description
Optional
Constraints: minLength: 0 maxLength: 1024

description

array of object
eventHandlers
Optional

eventHandlers

string
href
Optional

href

string
state
Optional

state

Possible values are : STARTED, STOPPED, STOPPING, STARTING,
string
id
Optional

id

string
started-by
Optional

started-by

object
relations
Optional

relations

string
priority
Optional

priority

Possible values are : VERY_LOW, LOW, MEDIUM, HIGH, VERY_HIGH,
Responses
200

successful operation

Returns policy of type(s) application/json
"policy Object"
array of object
policy-item
Optional

policy-item

string
startup
Optional

startup

Possible values are : MANUAL, AUTOMATIC,
array of object
parameter
Optional

parameter

string
name
Required
Constraints: minLength: 1 maxLength: 100

name

string
description
Optional
Constraints: minLength: 0 maxLength: 1024

description

array of object
eventHandlers
Optional

eventHandlers

string
href
Optional

href

string
state
Optional

state

Possible values are : STARTED, STOPPED, STOPPING, STARTING,
string
id
Optional

id

string
started-by
Optional

started-by

object
relations
Optional

relations

string
priority
Optional

priority

Possible values are : VERY_LOW, LOW, MEDIUM, HIGH, VERY_HIGH,

201

The request is successful

Operation doesn't return any data structure

400

The request is invalid(validation error)

Operation doesn't return any data structure

401

The user is not authorized

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/vco/api/policies