Get Excluded Resources
This endpoint allows a user with FULL access to get the list of excluded resources due to exceptions been configured.
There is a 10k limit to the maximum number of excluded resources that can be returned. Paging will not work for excluded resources higher than this limit. To fetch larger numbers, segment your requests using account and/or region filtering. On larger organisations, filter requests per account, per region or provider to avoid timeouts
Filtering
The filter
query parameter is reserved to be used as the basis for filtering.
For example, the following is a request for a page of excluded resources filtered by cloud provider AWS
:
GET /resources?excluded=true&accountIds=r1gyR4cqg&page[size]=100&page[number]=0&filter[providers]=aws
Multiple filter values can be combined in a comma-separated list. For example the following is a request for a page of excluded resources in us-west-2
or us-west-1
regions:
GET /resources?excluded=true&accountIds=r1gyR4cqg&page[size]=100&page[number]=0&filter[regions]=us-west-1,us-west-2
Furthermore, multiple filters can be applied to a single request. For example, the following is a request to get excluded resources for us-west-2
region when the provider of the resource is aws
GET /resources?excluded=true&accountIds=r1gyR4cqg&page[size]=100&page[number]=0&filter[regions]=us-west-2&filter[tags]=MyBucket
The table below give more information about filter options:
Name | Values |
---|---|
filter[regions] | Example: global | us-east-1 | us-east-2 | southafricanorth | southafricawest For a complete list, please refer to Cloud Conformity Region Endpoint |
filter[tags] | Any assigned metadata tags to your resources |
filter[providers] | Cloud providers. Accepted values: ["aws" | "azure" | "gcp"] |
query Parameters
OK
Unauthorized. When the API Key is not provided.
Unauthorized. The requesting user does not have enough privilege.
- 200
- 401
- 403
{- "data": [
- {
- "type": "resources",
- "id": "ccrn:aws:r1gyR4cqg:CloudFormation:us-west-2:CloudConformityMonitoring",
- "attributes": {
- "account-id": "r1gyR4cqg",
- "ccrn": "ccrn:aws:r1gyR4cqg:CloudFormation:us-west-2:CloudConformityMonitoring",
- "resource": "CloudConformityMonitoring",
- "region": "us-west-2",
- "descriptor-type": "cfm-stack",
- "link-title": "CloudConformityMonitoring",
- "resource-name": "CloudFormation Stack",
- "tags": [
- "Version::4"
], - "provider": "aws",
- "excluded-rules": [
- {
- "rule-id": "CFM-001"
}
]
}
}
]
}