Import APIM policies
POST /apim/import_policies
Overview
This API imports a set of policies into an API or API version.
Prerequisites
- Org admin (Environment admin) permissions
Request
POST https://{pod_path}/api/1/rest/public/apim/import_policies
Path Parameters
Key | Description |
---|---|
pod_path |
Required. The path to your SnapLogic pod.
Example: |
Query Parameters
None.
Request Header
Specify Basic
for authorization and application/json
for content type.
Authorization: Basic {your_encoded_security_credentials}
Content-Type: application/json
Request Body
{
"path" : "...",
"policies_to_import" : { ... }
}
Key | Type | Description |
---|---|---|
path |
string |
The path to the API or the API version.
Format:
|
policies_to_import |
JSON object | The JSON object returned by the Export APIM policies API.
Example:
|
Response
Response Body
{
"response_map": {
"import_results": {
"overrode": [ ... ],
"ignored": [ ... ],
"imported": [ ... ]
}
},
"http_status_code": 200
}
Key | Type | Description |
---|---|---|
overrode |
array | An array of strings containing the names of the policies that were overridden. |
ignored |
array | An array of strings containing the names of the policies that were ignored. |
imported |
array | An array of strings containing the names of the policies that were successfully imported. |