GenerateResult
Generates a report for the specified carbon footprint.
Operation description
Creates a task to generate the carbon footprint results for a specified product. You can query the task status by calling the report generation status query API operation. After the results are generated, you can query the display content on other result query pages.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GenerateResult |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/result/generate HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| code |
string |
Yes |
The enterprise code. |
C-20080808-1 |
| productId |
integer |
Yes |
The product ID. |
1024 |
| productType |
integer |
Yes |
The product type. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. Each request has a unique ID for subsequent troubleshooting. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
boolean |
The returned data. A value of true indicates that the request succeeded. A value of false indicates that the request failed. |
true |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
"data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.