Verifies domain ownership.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:VerifyDomainOwner |
update |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call the DescribeInstance operation to query the ID of the current WAF instance. |
waf_v2_public_cn-***** |
| DomainName |
string |
Yes |
The domain name that you want to query. Set this parameter to perform a fuzzy query to check whether a domain name is added to WAF. |
example.com |
| VerifyType |
string |
Yes |
The verification method. Valid values:
Valid values:
|
dnsCheck |
| Protocol |
string |
No |
The protocol type used for file verification. This parameter is required only when you set VerifyType to fileCheck. Valid values:
Valid values:
|
HTTP |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
F35F45B0-5D6B-4238-BE02-A62D****E840 |
| VerifyResult |
object |
The verification result. |
|
| FailCode |
string |
The reason why the verification failed.
|
DnsTxtVerifyFailed |
| Result |
boolean |
The verification result. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "F35F45B0-5D6B-4238-BE02-A62D****E840",
"VerifyResult": {
"FailCode": "DnsTxtVerifyFailed",
"Result": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.