调用DescribeFabricOrganization获取一个组织的详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeFabricOrganization |
系统规定参数。取值:DescribeFabricOrganization。 |
OrganizationId | String | 是 | peers-aaaaaa2-1eqnj5o5w**** |
组织ID |
Location | String | 否 | cn-hangzhou |
位置 |
Tag.N.Key | String | 是 | key1 |
标签键 |
Tag.N.Value | String | 否 | value1 |
标签值 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
请求ID |
ErrorCode | Integer | 200 |
错误码 |
Success | Boolean | true |
是否成功 |
Result | Object |
组织的详细列表 |
|
Domain | String | org1.alibabacloudbaas.com |
域名 |
PeerCount | Integer | 2 |
Peer节点数 |
State | String | Running |
状态 |
CreateTime | String | 1533025590 |
创建时间 |
ConsortiumCount | Integer | 2 |
联盟数 |
SpecName | String | basic |
规格名 |
OwnerName | String | uid-23434 |
创建者 |
OwnerUid | Long | 23434 |
创建者Uid |
OwnerBid | String | 2544 |
创建者Bid |
CodeName | String | org1 |
域名前缀 |
OrganizationDescription | String | This is org1 |
组织描述 |
RegionId | String | cn-hangzhou |
地域 |
OrganizationId | String | peers-aaaaaa2-1eqnj5o5w9dt3 |
组织ID |
MSP | String | org1MSP |
成员服务提供者 |
RequestId | String | 1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3 |
请求ID |
CAUrl | String | https://ca1.org1.alibabacloudbaas.com:31154 |
组织CA节点地址 |
CANAME | String | client |
组织CA节点名称 |
ZoneId | String | cn-hangzhou-1a |
可用区 |
UserCount | Integer | 2 |
用户数 |
OrganizationName | String | org1 |
组织名称 |
Tags | Array of Tags |
标签列表 |
|
Key | String | BlockChainOwner |
标签键 |
Value | String | DepartmentA |
标签值 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeFabricOrganization
&OrganizationId=peers-aaaaaa2-1eqnj5o5w****
&Location=cn-hangzhou
&Tag=[{"Key":"key1","Value":"value1"}]
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeFabricOrganizationResponse>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<ErrorCode>200</ErrorCode>
<Success>true</Success>
<Result>
<Domain>org1.alibabacloudbaas.com</Domain>
<PeerCount>2</PeerCount>
<State>Running</State>
<CreateTime>1533025590</CreateTime>
<ConsortiumCount>2</ConsortiumCount>
<SpecName>basic</SpecName>
<OwnerName>uid-23434</OwnerName>
<OwnerUid>23434</OwnerUid>
<OwnerBid>2544</OwnerBid>
<CodeName>org1</CodeName>
<OrganizationDescription>This is org1</OrganizationDescription>
<RegionId>cn-hangzhou</RegionId>
<OrganizationId>peers-aaaaaa2-1eqnj5o5w9dt3</OrganizationId>
<MSP>org1MSP</MSP>
<RequestId>1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3</RequestId>
<CAUrl>https://ca1.org1.alibabacloudbaas.com:31154</CAUrl>
<CANAME>client</CANAME>
<ZoneId>cn-hangzhou-1a</ZoneId>
<UserCount>2</UserCount>
<OrganizationName>org1</OrganizationName>
<Tags>
<Key>BlockChainOwner</Key>
<Value>DepartmentA</Value>
</Tags>
</Result>
</DescribeFabricOrganizationResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"ErrorCode" : 200,
"Success" : true,
"Result" : {
"Domain" : "org1.alibabacloudbaas.com",
"PeerCount" : 2,
"State" : "Running",
"CreateTime" : "1533025590",
"ConsortiumCount" : 2,
"SpecName" : "basic",
"OwnerName" : "uid-23434",
"OwnerUid" : 23434,
"OwnerBid" : "2544",
"CodeName" : "org1",
"OrganizationDescription" : "This is org1",
"RegionId" : "cn-hangzhou",
"OrganizationId" : "peers-aaaaaa2-1eqnj5o5w9dt3",
"MSP" : "org1MSP",
"RequestId" : "1890FA4F-067A-4CE9-AC9B-2BD2E58FB5D3",
"CAUrl" : "https://ca1.org1.alibabacloudbaas.com:31154",
"CANAME" : "client",
"ZoneId" : "cn-hangzhou-1a",
"UserCount" : 2,
"OrganizationName" : "org1",
"Tags" : [ {
"Key" : "BlockChainOwner",
"Value" : "DepartmentA"
} ]
}
}
错误码
访问错误中心查看更多错误码。