Export APIM policies
GET /apim/export_policies
Overview
This API exports the policies of an API or API version.
Prerequisites
- Org admin (Environment admin) permissions
Request
GET https://{pod_path}/api/1/rest/public/apim/export_policies?{query_parameters}
Path Parameters
Key | Description |
---|---|
pod_path |
Required. The path to your SnapLogic pod.
Example: |
Query Parameters
Key | Type | Description |
---|---|---|
path |
string |
The path to the API or the API version.
Format:
|
policies_to_export |
array | A comma-separated list of strings containing the policies to export.
Valid values:
Example: |
Request Header
Specify Basic
for authorization and application/json
for content type.
Authorization: Basic {your_encoded_security_credentials}
Content-Type: application/json
Request Body
None.
Response
Response Body
The response is a JSON object containing information about the exported policies.
{
"0": [
...
],
"class_id": "com-snaplogic-policy-export",
"class_version": 1,
"source_org": "..."
}
Note: If you use the Import APIM policies API to import these policies to another API or API version,
you must provide the entire JSON object as the value for
policies_to_import
in the request body.