PUT
/
policies
/
{policyName}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

policyName
string
required

Name of the policy

Body

application/json

Rule that controls how a deployment is made and served (e.g. location restrictions)

created_at
string

The date and time when the resource was created

created_by
string

The user or service account who created the resource

updated_at
string

The date and time when the resource was updated

updated_by
string

The user or service account who updated the resource

display_name
string

Policy display name

flavors
object[]

Flavors allowed by the policy. If not set, all flavors are allowed.

labels
object | null

Labels

locations
object[]

Locations allowed by the policy. If not set, all locations are allowed.

name
string

Policy name

resource_types
string[]

ResourceTypes where the policy is applied. If not set, the policy is applied to all resource types.

type
string

Policy type, can be location or flavor

workspace
string

The workspace the policy belongs to

Response

200 - application/json

Rule that controls how a deployment is made and served (e.g. location restrictions)

created_at
string

The date and time when the resource was created

created_by
string

The user or service account who created the resource

updated_at
string

The date and time when the resource was updated

updated_by
string

The user or service account who updated the resource

display_name
string

Policy display name

flavors
object[]

Flavors allowed by the policy. If not set, all flavors are allowed.

labels
object | null

Labels

locations
object[]

Locations allowed by the policy. If not set, all locations are allowed.

name
string

Policy name

resource_types
string[]

ResourceTypes where the policy is applied. If not set, the policy is applied to all resource types.

type
string

Policy type, can be location or flavor

workspace
string

The workspace the policy belongs to