Queries the option settings of an extension in a workspace.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetOptionValueForProject |
The operation that you want to perform. Set the value to GetOptionValueForProject. |
RegionId | String | No | cn-zhangjiakou |
The ID of the region in which the DataWorks workspace resides. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system determines the value of this parameter based on the endpoint that is used to call the operation. |
ExtensionCode | String | No | ce4*********086da5 |
The unique code of the extension. |
ProjectId | String | No | 234 |
The ID of the workspace. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E6F0DBDD-5AD**** |
Id of the request |
OptionValue | String | null |
The option settings. In the example, cuNumber is a custom key. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetOptionValueForProject
&ExtensionCode=ce4*********086da5
&ProjectId=234
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetOptionValueForProjectResponse>
<RequestId>E6F0DBDD-5AD****</RequestId>
<OptionValue>{"cuNumber":"0"}</OptionValue>
</GetOptionValueForProjectResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "E6F0DBDD-5AD****",
"OptionValue" : "{\"cuNumber\":\"0\"}"
}
Error codes
For a list of error codes, visit the API Error Center.