GET
/cpanel/domains
curl \
-X GET http://localhost:3003/api/dev/cpanel/domains \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 331.153
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 415
ETag: W/"19f-uyQMMO2+IC0cVJqjul+aTlKGLog"
Date: Mon, 30 Oct 2023 02:00:35 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"result": {
"main_domain": "croissant-rouge.org.tn",
"sub_domains": [
"platform.croissant-rouge.org.tn",
"intranet.croissant-rouge.org.tn",
"gests30.croissant-rouge.org.tn",
"api.croissant-rouge.org.tn",
"app.croissant-rouge.org.tn",
"swift-api-staging.croissant-rouge.org.tn",
"swift-api.croissant-rouge.org.tn",
"swift-staging.croissant-rouge.org.tn",
"swift.croissant-rouge.org.tn",
"test.croissant-rouge.org.tn"
]
}
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 331.153
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 415
ETag: W/"19f-uyQMMO2+IC0cVJqjul+aTlKGLog"
Date: Mon, 30 Oct 2023 02:00:35 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (404)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 317.436
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 167
ETag: W/"a7-pG5OBYYmvTo3k47Go/htSc2hBl0"
Date: Mon, 30 Oct 2023 02:00:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 404,
"message": {
"RESPONSE_TEXT": "Oups! La ressource demandée est introuvable mais peut être disponible à l'avenir",
"RESPONSE_CODE": "PAGE_NOT_FOUND_MESSAGE"
}
}
Response examples (404)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 317.436
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 167
ETag: W/"a7-pG5OBYYmvTo3k47Go/htSc2hBl0"
Date: Mon, 30 Oct 2023 02:00:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}