Retrieves the list of all custom hostnames in your organization. This lets you check if a certain hostname already exists.
If the hostname exists and you need to retrieve, update, or delete it, you can use the appropriate endpoint to perform the desired action.
- Production serverhttps://edge-platform-admin-api.sitecorecloud.io/api/admin/v1/hostnames
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
https://edge-platform-admin-api.sitecorecloud.io/api/admin/v1/hostnames \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Successful operation
The custom hostname's unique identifier generated during creation.
The unique name assigned to a custom hostname.
The custom hostname's SSL properties, such as the domain control validation method, validation status, and related DNS records.
The default site ID associated with the custom hostname.
If you don't specify a value for defaultSiteId, you'll need to manually include it in the query parameter or body with each request to the custom hostname to ensure it is resolved correctly.
The default context ID associated with the custom hostname.
If you don't specify a value for defaultContextId, you'll need to manually include it in the query parameter or header with each request to the custom hostname to ensure it is resolved correctly.
The date and time the custom hostname was created.
The current status of the custom hostname.
Example values: "pending", "active".
{ "id": "08de73f4-6f01-49b2-9ca6-d7fab7de966d", "hostname": "sitecore-api-preview.example.com", "defaultSiteId": "playsummit", "defaultContextId": "3BTl4aU7w12A5M76m9p8IA", "ssl": { "expires_on": "2021-02-06T18:11:23.531995Z", "method": "txt", "status": "active", "validation_records": [ … ], "validation_errors": [ … ] }, "ownership_verification": { "name": "_cf_custom-hostname.sitecore-api-preview.example.com", "type": "txt", "value": "e5e19fb0-0666-449d-a5ae-414f485dc63b" }, "created_at": "2021-02-06T18:11:23.531995Z", "status": "active", "verification_errors": [ "SERVFAIL looking up CAA for app.example.com" ] }