Skip to main content

List Services

This API is used to retrieves all website acceleration services for the specified customer.

Request

Request-Line

GET /cdn/v1.0/services HTTP/1.1

Response

Response Body

ParameterTypeDescription
ArrayArray of Service object.

Object: Service

Property nameTypeDescription
idIntegerService ID number.
domainNameStringPrimary domain name for the acceleration.
originsArrayList of origin servers. At least one origin is required. For multiple origins, the order determines the priority (the first one is primary, subsequent ones are fallbacks). See Origin for details.
defaultHostHeaderStringSpecifies the default host header and SNI when no explicit host header or SNI is configured. preserve: Maintains the host header and SNI from the original request. originHost: Uses the host from the origin URL.
alternateDomainNamesArrayList of alternate domain names for the service.
streamingBooleanWhether to combine multiple client requests to a single request to the origin server. true: Enabled, false: Disabled. Default is false.
http2BooleanEnable HTTP/2 protocol. Default is true.
http3BooleanEnable HTTP/3 protocol. Default is false.
redirectHttpToHttpsBooleanWhether to redirect all HTTP requests to HTTPS. Default is false.
tlsProfileStringTLS security profile. modern: TLS 1.3 only, highest security, no backward compatibility. intermediate: Recommended for most services, compatible with modern clients. old: Maximum compatibility, use only for legacy client support.
enabledBooleanWhether the service is enabled. Default is true.
Object: Origin
Property nameTypeDescription
originUrlStringOrigin service address. Format: [http[s]://]hostname[:port][/path/prefix]. If scheme is specified, it is forced for all origin requests. If omitted, the client's protocol is used.
sniStringThe server name to send to the origin during SSL handshake.
headersObjectThe Origin Headers containing extra headers to send to the origin.
s3CredentialObjectConfigure the S3 credential. See S3Credential for details.
Object: S3 Credential
Property nameTypeDescription
accessKeyStringConfigure the AWS access key ID to generate the signature to access S3.
accessSecretStringConfigure the AWS access secret to generate the signature to access S3.
regionStringConfigure the AWS region (e.g., ap-southeast-1).
dropQueryStringBooleanDrop the query string from the origin generating the signature to it. Default is false.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400InvalidCustomer.IdEmptyCustomer ID cannot be empty.

Examples

List Services

Request

GET /cdn/v1.0/services HTTP/1.1

Successful Response Body

[
{
"id": 228622,
"domainName": "test.example.com",
"streaming": true,
"http2": true,
"http3": false,
"redirectHttpToHttps": true,
"enabled": true,
"tlsProfile": "modern",
"origins": [
{
"originUrl": "https://origin1.example.com",
"sni": "origin-sni.example.com",
"headers": {
"X-Custom-Header": "test-value",
"X-Forwarded-For": "client-ip"
},
"s3Credential": {
"accessKey": "AKIAEXAMPLE123456",
"accessSecret": "secret1234567890abcdefghijklmnopqrstuvwxyz",
"region": "us-east-1",
"dropQueryString": false
}
}
],
"defaultHostHeader": "originHost",
"alternateDomainNames": [
"cdn.example.com",
"www.test.example.com"
],
"cName": "edge2x.testing.veloceed.com"
},
{
"id": 228624,
"domainName": "test2.example.com",
"streaming": true,
"http2": true,
"http3": false,
"redirectHttpToHttps": true,
"enabled": true,
"tlsProfile": "modern",
"origins": [
{
"originUrl": "https://origin1.example.com",
"sni": "origin-sni.example.com",
"headers": {
"Host": "origin-host.example.com",
"X-Custom-Header": "test-value",
"X-Forwarded-For": "client-ip"
},
"s3Credential": {
"accessKey": "AKIAEXAMPLE123456",
"accessSecret": "secret1234567890abcdefghijklmnopqrstuvwxyz",
"region": "us-east-1",
"dropQueryString": false
}
}
],
"defaultHostHeader": "originHost",
"alternateDomainNames": [
"www2.test.example.com",
"cdn2.example.com"
],
"cName": "edge2x.testing.veloceed.com"
}
]