Get a policy

GET https://{{host}}/script-management/v1/properties/:propertyId/hostnames/:hostname/network/:network/policies

Returns information about the latest version of a policy for the specified property, hostname, and network.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{"activationTime":"2022-02-19T09:45:00.000Z","policyNote":"First version for testing","scriptConfig":[{"action":"BLOCK","item":"https://www.example.com/main.min.js","type":"URL"},{"action":"DEFER","item":"https://www.example.com/analytics.js","type":"URL"}],"spofConfig":{"advancedSettings":{"maxSpofTimeoutInSecs":20,"minSpofTimeoutInSecs":6},"spofEnabled":true},"versionId":"1"}]