Update Policy

Update Policy details if required after creation using the api, the update by a user depends on the scope of the policy created check create policy docs for more details on the scope

Path Params
string
required

Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

string
required

Specify the policy id to execute, policy id can be obtained from the list policy api

Body Params
string
required

policy name which is unique and does not allow space or special character

string

Display name of policy which allow space this is to mostly show on the ui

string

A brief explanation of the policy.

type
array of strings

Indicates the type of policy

type
string
required

The category will be either service or resource

string
required

The policy content

boolean

Flag to identify system policies

metadata
object
string
enum

Engine type of the policy

cloud
array of strings

Displays the cloud associated with the policy

cloud
string
required

Policies are classified based on the basis of the activity they perform, for example provisioning, Account Management, Utilization, etc. This value is displayed in this field

string
required

Sub classification for policy

string
enum
required

The scope of the policy: Account scope - All users under that account will have access to view and execute Only Account admins can update/delete the policies, Tenant Scope - Users with access to the specific tenant will have access to policies who can describe or execute policies. Tenant admins can only update/delete. Private Scope - User who created will only have access

Allowed:
string
enum

Policy content source

Allowed:
string

Password or private key to access of Git repo if repo is authenticated required if the content type is git

string

Username of Git repo if repo is authenticated required if the content type is git

string

Git project URL when the content type is git required if the content type is git

string

Root path of the policy in git repo required if the content type is git

string
enum
required

Severity of policy

Allowed:
Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json