Scripts

Create script rule

Create script rule to associate the specified script with resources.

post/organizations/{organization_id}/scripts/{script_id}/rules

Request

  • Base URL
    https://api.cloudranger.com/202004
  • URL
    https://api.cloudranger.com/202004/organizations/{organization_id}/scripts/{script_id}/rules
  • Auth
    API key in header Authorization and API key in header x-api-key

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

Request body

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

Response

200 response

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

Changes

No recorded changes to this operation across all 1 revision of this API.