This is an API to get a list of Policies by Environment and POP ID. You can find the POP ID using the GET List of POPs API or through the UI under your POP settings.
Notice
Accessing the APIs is through a dedicated domain/URL, according to your PlainID Tenant Locationhttps://API.us1.plainid.io
https://api.ca1.plainid.io
https://api.eu1.plainid.io
Using HTML Encoded Special Characters
Use HTML encoded patterns when working with values that contain special characters like spaces, dashes, etc. Refer to this HTML URL Encoding Reference for a full list.
Important note about headers
Refer to the headers below to modify your cURL sample. Check if the following headers are in the sample, if not, ensure you add it to your cURL sample before pasting into your API tool.Headers
*RequiredHeader | Value | cURL Line |
---|---|---|
Accept | `application/json` | `-H"Accept: application/json"` |
cURL Sample Guidelines
In order for the relevant parameters to appear in the cURL sample, you can input the values in the interactive API console on the right in the Try It or Code Sample tabs. You can then copy the cURL sample from the Code Sample tab in the correct format.
Using HTML Encoded Special Characters
Use HTML encoded patterns when working with values that contain special characters like spaces, dashes, etc. Refer to this HTML URL Encoding Reference for a full list.
For more details about Administration API Authentication, check out the Authentication APIs documentation
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Environment ID. You can find the Environment ID in your Environment Settings.
POP ID. You can find the POP ID using the GET List of POPs API or through the UI under your POP settings.
Filter by Policy Name.
Limit for pagination.
Offset for pagination.
List of POP-related Policies
{
"data": [
{
"vendorPolicyId": "role_0b9192e5-6b04-4350-a781-021878c04689_20432",
"name": "Role1",
"type": "ALLOW"
},
{
"vendorPolicyId": "role_0b9192e5-6b04-4350-a781-021878c04689_20441",
"name": "Role2",
"type": "ALLOW"
}
],
"meta": {
"limit": 50,
"offset": 0,
"total": 2
}
}
Response Meta
Total number of records
Limit the number of records returned
The starting point for return of records
Unauthorized
Internal Server Error