You can call this operation to check whether the domain name of the consortium is available.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CheckFabricConsortiumDomain |
The operation that you want to perform. Set the value to CheckFabricConsortiumDomain. |
DomainCode | String | Yes | bank |
The domain name of the consortium. |
RegionId | String | No | cn-hangzhou |
The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrorCode | Integer | 200 |
The error code. |
RequestId | String | 8F80A214-89FC-4348-9B3F-15446B3DC1FA |
The ID of the API request. |
Result |
The result. |
||
Domain | String | bank |
The domain name. |
Prompt | String | OK |
The prompt message. |
Valid | Boolean | true |
Indicates whether the domain name is valid. A value of true indicates that the domain name is valid. A value of false indicates that the domain name is invalid. |
Success | Boolean | true |
Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CheckFabricConsortiumDomain
&DomainCode=bank
&<Common request parameters>
Successful response examples
XML
format
<CheckFabricConsortiumDomainResponse>
</Result>
<Prompt>OK</Prompt>
<Domain>bank</Domain>
<Valid>true</Valid>
</Result>
<RequestId>8F80A214-89FC-4348-9B3F-15446B3DC1FA</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
</CheckFabricConsortiumDomainResponse>
JSON
format
{
"Result":{
"Prompt":"OK",
"Domain":"bank",
"Valid":true
},
"RequestId":"8F80A214-89FC-4348-9B3F-15446B3DC1FA",
"ErrorCode":200,
"Success":true
}
Error codes
For more information about error codes, see Error codes.