Identity Provider API, REST: Userpool.AddDomain
Adds a domain to the specified userpool.
HTTP request
POST https://organization-manager.api.cloud.yandex.net/organization-manager/v1/idp/userpools/{userpoolId}/domains
Path parameters
Request to add a domain to a userpool.
|
Field |
Description |
|
userpoolId |
string Required field. ID of the userpool to add a domain to. |
Body parameters
{
"domain": "string"
}
Request to add a domain to a userpool.
|
Field |
Description |
|
domain |
string Domain name to add. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"userpoolId": "string",
"domain": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"domain": "string",
"status": "string",
"statusCode": "string",
"createdAt": "string",
"validatedAt": "string",
"challenges": [
{
"createdAt": "string",
"updatedAt": "string",
"type": "string",
"status": "string",
// Includes only one of the fields `dnsChallenge`
"dnsChallenge": {
"name": "string",
"type": "string",
"value": "string"
}
// end of the list of possible fields
}
],
"deletionProtection": "boolean"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
createdBy |
string ID of the user or service account who initiated the operation. |
|
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
|
done |
boolean If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
AddUserpoolDomainMetadata
Metadata for the UserpoolService.AddDomain operation.
|
Field |
Description |
|
userpoolId |
string ID of the userpool. |
|
domain |
string Domain name being added. |
Status
The error result of the operation in case of failure or cancellation.
|
Field |
Description |
|
code |
integer (int32) Error code. An enum value of google.rpc.Code |
|
message |
string An error message. |
|
details[] |
object A list of messages that carry the error details. |
Domain
A domain associated with a userpool.
|
Field |
Description |
|
domain |
string Domain name. |
|
status |
enum (Status) Current status of the domain.
|
|
statusCode |
string Optional code providing details about validation errors. |
|
createdAt |
string (date-time) Timestamp when the domain was created. String in RFC3339 To work with values in this field, use the APIs described in the |
|
validatedAt |
string (date-time) Timestamp when the domain was validated. String in RFC3339 To work with values in this field, use the APIs described in the |
|
challenges[] |
List of challenges associated with this domain. |
|
deletionProtection |
boolean Whether the domain is protected from deletion. |
DomainChallenge
A challenge used to validate domain ownership.
|
Field |
Description |
|
createdAt |
string (date-time) Timestamp when the challenge was created. String in RFC3339 To work with values in this field, use the APIs described in the |
|
updatedAt |
string (date-time) Timestamp when the challenge was last updated. String in RFC3339 To work with values in this field, use the APIs described in the |
|
type |
enum (Type) Type of the challenge.
|
|
status |
enum (Status) Current status of the challenge.
|
|
dnsChallenge |
DNS record challenge details. Includes only one of the fields Challenge details. |
DnsRecord
DNS record information for domain validation.
|
Field |
Description |
|
name |
string Name of the DNS record. |
|
type |
enum (Type) Type of the DNS record.
|
|
value |
string Value of the DNS record. |