v6

latestSwagger 2.02026-07-1342142196.4 KB
Policies

Create a policy with a given policyName.

put/policies/{policyName}

Path parameters

policyNamestring required

The caller provided unique name for the resource.

Query parameters

api-versionstring required

The API version to use for this operation.

Request body

idstring

This is typically the same as the name but might be different for different models.

namestring required

The caller provided unique name for the resource.

displayNamestring

The name that can be used for display purposes.

descriptionstring

A human readable description of what the policy should do.

filterNamestring required

Name of the saved filter query to be used to select assets that are to be updated by a given policy.

action'addResource' | 'removeResource' | 'setState' | 'setExternalID' | 'removeFromInventory' required

A list of policy actions

updatedAssetsCountinteger

Number of assets in inventory that have been updated by this policy.

userstring

The unique name of the user that created the policy user@gmail.com

createdDatestring date-time

The date this policy was created, in RFC3339 format.

updatedDatestring date-time

The date this policy was last updated, in RFC3339 format.

Response

The request has succeeded.

idstring

This is typically the same as the name but might be different for different models.

namestring required

The caller provided unique name for the resource.

displayNamestring

The name that can be used for display purposes.

descriptionstring

A human readable description of what the policy should do.

filterNamestring required

Name of the saved filter query to be used to select assets that are to be updated by a given policy.

action'addResource' | 'removeResource' | 'setState' | 'setExternalID' | 'removeFromInventory' required

A list of policy actions

updatedAssetsCountinteger

Number of assets in inventory that have been updated by this policy.

userstring

The unique name of the user that created the policy user@gmail.com

createdDatestring date-time

The date this policy was created, in RFC3339 format.

updatedDatestring date-time

The date this policy was last updated, in RFC3339 format.