v1

latestOpenAPI 3.1.02026-07-245531,0212.1 MB
Scripts

Update script rule

Update script rule to associate the specified script with resources.

put/organizations/{organization_id}/scripts/{script_id}/rules/{rule_id}

Path parameters

organization_idstring required

Organization Id of the Organization that you are working with. This can be found by looking at the organization id in the URL of the dashboard. These are randomly generated alphanumber values

script_idstring required

The script identifier which can be used to return information about a script which has been imported to CloudRanger within your organization. You can get all script_ids by using the GET call /organizations/:organization_id/scripts which will return all of the scripts which have been imported within your organization

rule_idstring required

The ID of the backup policy rule that you want to perform the request against. These can be found by the GET call /organizations/:organization_id/policies/:policy_id which returns a single policy with its associated rules

Request body

regionsstring[]
resource_typesstring[]
idinteger
rule_typestring
excludeboolean
all_accountsboolean
all_regionsboolean
all_resource_typesboolean

Response

200 response

idinteger
script_idinteger
rule_typestring
execution_typestring
all_accountsboolean
all_regionsboolean
regionsstring[]
tagsstring[]