SAML Federation API, REST: Federation.ValidateDomain
Validates a domain in the specified federation.
HTTP request
POST https://organization-manager.api.cloud.yandex.net/organization-manager/v1/saml/federations/{federationId}/domains/{domain}:validate
Path parameters
Field |
Description |
federationId |
string Required field. ID of the federation to validate a domain for. |
domain |
string Required field. Domain name to validate for the federation. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"federationId": "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
}
]
}
// 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 |
ValidateFederationDomainMetadata 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. |
ValidateFederationDomainMetadata
Field |
Description |
federationId |
string ID of the federation that the domain validation is being performed for. |
domain |
string Domain name that is being validated for the federation. |
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.
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 of domain creation. 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 successfully validated. String in RFC3339 To work with values in this field, use the APIs described in the |
challenges[] |
List of challenges to confirm domain ownership. |
DomainChallenge
A domain validation challenge.
Field |
Description |
createdAt |
string (date-time) Timestamp of challenge creation. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedAt |
string (date-time) Timestamp of the last challenge status update. String in RFC3339 To work with values in this field, use the APIs described in the |
type |
enum (Type) Type of the validation challenge.
|
status |
enum (Status) Current status of the challenge.
|
dnsChallenge |
DNS record configuration for domain verification. Includes only one of the fields Validation challenge payload. Currently supports only DNS records. |
DnsRecord
DNS record data for validation challenges.
Field |
Description |
name |
string Fully qualified domain name for the record. |
type |
enum (Type) DNS record type (always TXT for current implementation).
|
value |
string Value to set in the DNS record for verification. |