You can call this operation to obtain the policy that is used to upload the chaincode.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeFabricChaincodeUploadPolicy

The operation that you want to perform. Set the value to DescribeFabricChaincodeUploadPolicy.

OrganizationId String Yes peers-aaaaaa1-1oxw31d04****

The ID of the organization.

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 result of the operation.

AccessId String accessId

The ID that is used to access OSS.

Dir String test3/4bd1de21-2fff-4405-a8e9-f864c4bee24f

The directory where the chaincode is uploaded.

Expire Integer 1533025590

The time when the user expires.

Host String https://chaincode.oss-cn-beijing.aliyuncs.com

The domain name of OSS.

Policy String eyJleHBpcmF0aW9uIjoiMjAxOC0wNy0zMVQwODoyNjozMC40NzdaIiwiY29uZGl

The security policy of the OSS instance.

Signature String signature

The signature of the OSS instance.

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=DescribeFabricChaincodeUploadPolicy
&OrganizationId=peers-aaaaaa1-1oxw31d04****
&<Common request parameters>

Successful response examples

XML format

<DescribeFabricChaincodeUploadPolicyResponse>
	  <Result>
		    <Dir>t/4bd1de21-2fff-4</Dir>
		    <Host>https://oss.aliyuncs.com</Host>
		    <Policy>eyJleHBpcmF0aW9uIjoiMjAxOC0wNy0zMVQwODoyNjozMC40NzdaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ0ZXN0My80YmQxZGUyMS0yZmZmLTQ0MDUtYThlOS1mODY0YzRiZWUyNGYiXV19</Policy>
		    <Expire>1533025590</Expire>
		    <AccessId>accessId</AccessId>
		    <Signature>klI/signature=</Signature>
	  </Result>
	  <RequestId>540BFE13-BDE5-40B9-BCDD-F2E24B6D064F</RequestId>
	  <Success>true</Success>
	  <ErrorCode>200</ErrorCode>
</DescribeFabricChaincodeUploadPolicyResponse>

JSON format

{
	"Result":{
		"Dir":"t/4bd1de21-2fff-4",
		"Host":"https://oss.aliyuncs.com",
		"Policy":"eyJleHBpcmF0aW9uIjoiMjAxOC0wNy0zMVQwODoyNjozMC40NzdaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJ0ZXN0My80YmQxZGUyMS0yZmZmLTQ0MDUtYThlOS1mODY0YzRiZWUyNGYiXV19",
		"Expire":1533025590,
		"AccessId":"accessId",
		"Signature":"klI/signature="
	},
	"RequestId":"540BFE13-BDE5-40B9-BCDD-F2E24B6D064F",
	"ErrorCode":200,
	"Success":true
}

Error codes

For more information about error codes, see Error codes.