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
.
Body
PARAM
Key | Datatype | Required | Description |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
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"
}
] |
ENDPOINTS