Domains
Get a list of domains for an instance
instance_id*stringInstance ID
page?integerPage number
limit?integerPage size (default 25, at most 100)
sort?stringSort order
search?stringSearch
type?"auth_server"Type
"auth_server"OK
application/json- response
data?array<>The list of domains
object?stringThe object type
pagination?The pagination information
curl -X GET 'https://api.pontive.com/v1/domains?instance_id=string'{ "data": [ { "created_at": "2019-08-24T14:15:22Z", "domain": "string", "id": "string", "instance_id": "string", "ssl": { "auto_renew": true, "expires_at": "2019-08-24T14:15:22Z", "issued_at": "2019-08-24T14:15:22Z", "issuer": "string" }, "status": "string", "type": "auth_server", "updated_at": "2019-08-24T14:15:22Z", "usage": { "apps_count": 0, "service_accounts_count": 0 }, "verification": { "challenge": "string", "last_check_at": "2019-08-24T14:15:22Z", "last_check_error": "string", "method": "string", "target": "string", "verified_at": "2019-08-24T14:15:22Z" } } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}Register a hostname against an instance. The domain starts pending and carries the DNS challenge that must be published before it can be activated.
Domain to create
application/json- body
Domain to create
domain*stringThe hostname, e.g. auth.acme.com
instance_id*stringThe ID of the instance to add the domain to
Created
application/json- response
domain?The created domain. It starts pending, carrying the challenge that must be published before it can be activated.
object?stringThe object type
curl -X POST 'https://api.pontive.com/v1/domains' \ -H 'Content-Type: application/json' \ -d '{ "domain": "string", "instance_id": "string"}'{ "domain": { "created_at": "2019-08-24T14:15:22Z", "domain": "string", "id": "string", "instance_id": "string", "ssl": { "auto_renew": true, "expires_at": "2019-08-24T14:15:22Z", "issued_at": "2019-08-24T14:15:22Z", "issuer": "string" }, "status": "string", "type": "auth_server", "updated_at": "2019-08-24T14:15:22Z", "usage": { "apps_count": 0, "service_accounts_count": 0 }, "verification": { "challenge": "string", "last_check_at": "2019-08-24T14:15:22Z", "last_check_error": "string", "method": "string", "target": "string", "verified_at": "2019-08-24T14:15:22Z" } }, "object": "string"}Remove a domain. Refused while any app or service account is still bound to it.
domain_id*stringDomain ID
No Content
curl -X DELETE 'https://api.pontive.com/v1/domains/string'Check the DNS TXT challenge for a domain and record the outcome. Does not activate the domain; activation is a separate call and is refused until verification has succeeded.
domain_id*stringDomain ID
OK
application/json- response
domain?The created domain. It starts pending, carrying the challenge that must be published before it can be activated.
object?stringThe object type
curl -X POST 'https://api.pontive.com/v1/domains/string/verify'{ "domain": { "created_at": "2019-08-24T14:15:22Z", "domain": "string", "id": "string", "instance_id": "string", "ssl": { "auto_renew": true, "expires_at": "2019-08-24T14:15:22Z", "issued_at": "2019-08-24T14:15:22Z", "issuer": "string" }, "status": "string", "type": "auth_server", "updated_at": "2019-08-24T14:15:22Z", "usage": { "apps_count": 0, "service_accounts_count": 0 }, "verification": { "challenge": "string", "last_check_at": "2019-08-24T14:15:22Z", "last_check_error": "string", "method": "string", "target": "string", "verified_at": "2019-08-24T14:15:22Z" } }, "object": "string"}