Get CDN resources list
Changed onGet information about all CDN resources in your account.
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/resources
- AuthHTTP apikey
Query parameters
Defines whether a CDN resource has been deleted.
Possible values:
- true - CDN resource has been deleted.
- false - CDN resource has not been deleted.
Enables or disables a CDN resource change by a user.
Possible values:
- true - CDN resource is enabled.
- false - CDN resource is disabled.
Origin group ID.
Origin group IDs. Values should be separated by a comma.
Example:
- ?originGroup__in=1,2,3
Defines whether the HTTPS protocol is enabled for content delivery.
Possible values:
- true - HTTPS protocol is enabled for CDN resource.
- false - HTTPS protocol is disabled for CDN resource.
SSL certificate ID.
SSL certificates IDs.
Example:
- ?sslData_in=1643,1644,1652
Earliest date of CDN resource creation for which CDN resources should be returned (ISO 8601/RFC 3339 format, UTC.)
Most recent date of CDN resource creation for which CDN resources should be returned (ISO 8601/RFC 3339 format, UTC.)
Delivery domain (CNAME) of the CDN resource.
Additional delivery domains (CNAMEs) of the CDN resource.
Defines whether the CDN resource is integrated with the Streaming platform.
Possible values:
- true - CDN resource is used for Streaming platform.
- false - CDN resource is not used for Streaming platform.
Rule name or pattern.
Defines whether origin shielding is enabled for the CDN resource.
Possible values:
- true - Origin shielding is enabled for the CDN resource.
- false - Origin shielding is disabled for the CDN resource.
Name of the origin shielding data center location.
Defines whether the CDN resource was automatically suspended by the system.
Possible values:
- true - CDN resource is selected for automatic suspension in the next 7 days.
- false - CDN resource is not selected for automatic suspension.
CDN resource status.
Defines whether a CDN resource is activated.
Possible values:
- true - CDN resource is activated.
- false - CDN resource is deactivated.
Name of the CDN resource. Matches partially and is case-insensitive.
Protocol used by CDN servers to request content from an origin source.
Defines whether a CDN resource is currently suspended. This reflects the resource's suspended state, unlike the suspend parameter, which selects resources that have a scheduled automatic suspension date.
Possible values:
- true - CDN resource is currently suspended.
- false - CDN resource is not suspended.
Filters CDN resources by their primary/alternate relationship. Standalone resources — those not linked to another resource, which is the default — match neither value and are returned by neither true nor false.
Possible values:
- true - CDN resource is a primary resource for one or more alternate resources.
- false - CDN resource is an alternate resource linked to a primary resource.
Filters CDN resources by whether they are linked to a WAAP domain. A CDN resource stays linked when WAAP is turned off on it.
Possible values:
- true - CDN resource is not linked to a WAAP domain.
- false - CDN resource is linked to a WAAP domain.
Earliest date of CDN resource update for which CDN resources should be returned (ISO 8601/RFC 3339 format, UTC.)
Most recent date of CDN resource update for which CDN resources should be returned (ISO 8601/RFC 3339 format, UTC.)
Maximum number of items to return in the response. Cannot exceed 1000.
Number of items to skip from the beginning of the list.
Response
Successful.
Example response
[
{
"id": 220,
"cname": "cdn.example.com",
"active": true,
"enabled": true,
"status": "active",
"deleted": false,
"client": 170,
"name": "My resource",
"description": "Resource for images",
"created": "2017-06-10T10:30:04.954354Z",
"updated": "2017-06-10T10:35:04.954354Z",
"originGroup": 80,
"originGroup_name": "Resource origin group",
"originProtocol": "HTTP",
"secondaryHostnames": [
"cdn1.example.com",
"cdn2.example.com"
],
"shielded": false,
"shield_dc": null,
"shield_enabled": false,
"shield_routing_map": null,
"sslEnabled": true,
"sslData": 100,
"proxy_ssl_enabled": false,
"proxy_ssl_ca": null,
"proxy_ssl_data": null,
"preset_applied": false,
"vp_enabled": false,
"full_custom_enabled": false,
"can_purge_by_urls": true,
"suspend_date": null,
"suspended": false,
"primary_resource": null,
"is_primary": null,
"waap_domain_id": null,
"rules": [],
"options": {}
},
{
"id": 222,
"deleted": true,
"client": 170,
"status": "deleted",
"updated": "2021-06-07T12:23:44.978506Z",
"cname": "www.example.com"
}
]Changes
- info
added the new optional
queryrequest parameterwaap_domain_id__isnull
- info
- info
added the optional property
///to the response with the status - info
added the optional property
/////to the response with the status
- info