Download OpenAPI specification:Download
This API manages CDN distributions.
This endpoint enables retrieving all Distributions using pagination and optional filters.
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
filter.domain | string [ 2 .. 253 ] characters ^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-... Example: filter.domain=example.com filters resources by domain. |
filter.state | string Enum: "AVAILABLE" "BUSY" "FAILED" "UNKNOWN" Example: filter.state=AVAILABLE filters resources by state. |
{- "id": "24c578a9-361f-54d4-a326-a3f3070d5a03",
- "type": "collection",
- "href": "/distributions",
- "items": [
- {
- "id": "9ba15778-16c4-543c-8775-e52acf4853f5",
- "type": "distribution",
- "href": "/distributions/9ba15778-16c4-543c-8775-e52acf4853f5",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "publicEndpointIpv4": "1.2.3.4",
- "publicEndpointIpv6": "2001:db8::ff00:42:8329",
- "state": "AVAILABLE",
- "message": "In progress."
}, - "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new Distribution.
The full Distribution needs to be provided to create the object. Optional data will be filled with defaults or left empty.
Distribution to create.
object Metadata | |
required | object (Distribution) A CDN distribution resource. |
{- "metadata": { },
- "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
{- "id": "9ba15778-16c4-543c-8775-e52acf4853f5",
- "type": "distribution",
- "href": "/distributions/9ba15778-16c4-543c-8775-e52acf4853f5",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "publicEndpointIpv4": "1.2.3.4",
- "publicEndpointIpv6": "2001:db8::ff00:42:8329",
- "state": "AVAILABLE",
- "message": "In progress."
}, - "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
Returns the Distribution by ID.
distributionId required | string <uuid> Example: 9ba15778-16c4-543c-8775-e52acf4853f5 The ID (UUID) of the Distribution. |
{- "id": "9ba15778-16c4-543c-8775-e52acf4853f5",
- "type": "distribution",
- "href": "/distributions/9ba15778-16c4-543c-8775-e52acf4853f5",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "publicEndpointIpv4": "1.2.3.4",
- "publicEndpointIpv6": "2001:db8::ff00:42:8329",
- "state": "AVAILABLE",
- "message": "In progress."
}, - "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
Ensures that the Distribution with the provided ID is created or modified. The full Distribution needs to be provided to ensure (either update or create) the Distribution. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
distributionId required | string <uuid> Example: 9ba15778-16c4-543c-8775-e52acf4853f5 The ID (UUID) of the Distribution. |
update Distribution
id required | string <uuid> The ID (UUID) of the Distribution. |
object Metadata | |
required | object (Distribution) A CDN distribution resource. |
{- "id": "9ba15778-16c4-543c-8775-e52acf4853f5",
- "metadata": { },
- "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
{- "id": "9ba15778-16c4-543c-8775-e52acf4853f5",
- "type": "distribution",
- "href": "/distributions/9ba15778-16c4-543c-8775-e52acf4853f5",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "publicEndpointIpv4": "1.2.3.4",
- "publicEndpointIpv6": "2001:db8::ff00:42:8329",
- "state": "AVAILABLE",
- "message": "In progress."
}, - "properties": {
- "domain": "example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "routingRules": [
- {
- "scheme": "http/https",
- "prefix": "/api",
- "upstream": {
- "host": "server.example.com",
- "caching": true,
- "waf": true,
- "geoRestrictions": {
- "blockList": [
- "CN",
- "RU"
]
}, - "rateLimitClass": "R1",
- "sniMode": "distribution"
}
}
]
}
}
Deletes the specified Distribution.
distributionId required | string <uuid> Example: 9ba15778-16c4-543c-8775-e52acf4853f5 The ID (UUID) of the Distribution. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}