All Products
Search
Document Center

Energy Expert:GetPcrInfo

Last Updated:Aug 19, 2025

Obtains the oss address of the Product Carbon footprint Report.

Operation description

With the user-specified product ID, this interface retrieves detailed information and download links for previously generated PCR reports. To use it, two conditions must be met: 1) the result has already been generated; 2) the PCR report has been created.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
energy:GetPcrInfonone
*All Resources
*
    none
none

Request syntax

POST /api/v1/carbon/footprint/result/pcr/detail HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

Request parameters.

codestringYes

The enterprise code.

C-20080808-1
productIdstringYes

The product id.

1024
productTypelongYes

Product type: 1 indicates that the carbon footprint of the product is requested, and 5 indicates that the carbon footprint of the supply chain is requested.

1

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The ID of the request. The value is unique for each request. This facilitates subsequent troubleshooting.

4A0AEC56-5C9A-5D47-93DF-7227836FFF82
dataobject

The response parameters.

createTimestring

The timestamp when the report was created. The timestamp is in milliseconds.

1709109790532
namestring

Report name

report name
urlstring

Download url link.

https://energy.alibabacloud.com

Examples

Sample success responses

JSONformat

{
  "requestId": "4A0AEC56-5C9A-5D47-93DF-7227836FFF82",
  "data": {
    "createTime": 1709109790532,
    "name": "report name",
    "url": "https://energy.alibabacloud.com"
  }
}

Error codes

For a list of error codes, visit the Service error codes.