You can call this operation to query the peer node list of the organization.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeFabricOrganizationPeers |
The operation that you want to perform. Set the value to DescribeFabricOrganizationPeers. |
OrganizationId | String | Yes | peers-aaaaaa2-1eqnj5o5w**** |
The ID of the organization. |
Location | String | No | cn-hangzhou |
The location. |
RegionId | String | No | cn-hangzhou |
The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrorCode | Integer | 200 |
The error code. |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
The ID of the API request. |
Result |
The node list of an organization. |
||
CreateTime | String | 1533025590 |
The time when the organization was created. |
Domain | String | domain |
The domain name. |
InstanceType | String | basic |
The type of the instance. |
InternetIp | String | 10.0.0.2 |
The IP address of the public network. |
IntranetIp | String | 10.0.0.2 |
The IP address of the internal network. |
IsAnchor | Boolean | false |
Indicates whether the node is an anchor peer. A value of true indicates that the node is an anchor peer. A value of false indicates that the node is not an anchor peer. |
OrganizationPeerName | String | name |
The name of the peer node in the organization. |
Port | Integer | 1234 |
The port of the node. |
UpdateTime | String | 1533025590 |
The time when the organization was last updated. |
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=DescribeFabricOrganizationPeers
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&<Common request parameters>
Successful response examples
XML
format
<DescribeFabricOrganizationPeersResponse>
<Result>
<Port>7050</Port>
<Domain>peer1.taosafddasffsadfasaddsadbao.aliyunbaas.top</Domain>
<IsAnchor>true</IsAnchor>
<CreateTime>2018-07-01 09:00:00</CreateTime>
<UpdateTime>2018-07-02 09:00:00</UpdateTime>
<InternetIp>8.8.8.1</InternetIp>
<InstanceType>ecs.n1.small</InstanceType>
<IntranetIp>8.8.8.1</IntranetIp>
<OrganizationPeerName>name</OrganizationPeerName>
</Result>
<RequestId>C445762C-8909-4BD8-A2BD-BB45BF2441D8</RequestId>
<Success>true</Success>
<ErrorCode>200</ErrorCode>
</DescribeFabricOrganizationPeersResponse>
JSON
format
{
"Result":{
"Port":7050,
"OrganizationPeerName":"name",
"IsAnchor":true,
"Domain":"peer1.taosafddasffsadfasaddsadbao.aliyunbaas.top",
"IntranetIp":"8.8.8.1",
"CreateTime":"2018-07-01 09:00:00",
"InternetIp":"8.8.8.1",
"UpdateTime":"2018-07-02 09:00:00",
"InstanceType":"ecs.n1.small"
},
"RequestId":"C445762C-8909-4BD8-A2BD-BB45BF2441D8",
"ErrorCode":200,
"Success":true
}
Error codes
For more information about error codes, see Error codes.