Queries the built-in and custom extensions that are enabled in a workspace.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListEnabledExtensionsForProject |
The operation that you want to perform. Set the value to ListEnabledExtensionsForProject. |
EventCode | String | Yes | commit-file |
The code of the extension point event. |
ProjectId | Long | Yes | 10000 |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID. |
FileType | String | No | 10 |
The type of the code for the file. Valid values: 6 (Shell), 10 (ODPS SQL), 11 (ODPS MR), 24 (ODPS Script), 99 (zero load), 221 (PyODPS 2), 225 (ODPS Spark), 227 (EMR Hive), 228 (EMR Spark), 229 (EMR Spark SQL), 230 (EMR MR), 239 (OSS object inspection), 257 (EMR Shell), 258 (EMR Spark Shell), 259 (EMR Presto), 260 (EMR Impala), 900 (real-time synchronization), 1089 (cross-tenant collaboration), 1091 (Hologres development), 1093 (Hologres SQL), 1100 (assignment), and 1221 (PyODPS 3). You can call the ListFileType operation to query the type of the code for the file. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22 |
The ID of the request. |
Extensions | Array of Extensions |
The details of the extension. |
|
ExtensionCode | String | a94a8e23bc0b4dfab9a5e4d2f374d645 |
The unique code of the extension. |
ExtensionName | String | Prohibit the use of the MAX_PT function |
The name of the extension. |
TenantId | Long | 529889518659842 |
The ID of the tenant. |
CreateUser | String | 3444434343555 |
The creator of the extension. |
ModifyUser | String | 34452335611988 |
The modifier of the extension. |
ExtensionDesc | String | Whether the SQL script contains the MAX_PT function |
The description of the extension. |
Owner | String | 21323672*******55500 |
The owner ID. |
ParameterSetting | String | extension.fileType.23.deploy-file.enabled=true |
The parameter settings of the extension. For more information, see Configure extension parameters. |
GmtCreate | Long | 1660117173 |
The time when the extension was created. |
GmtModified | Long | 1569308162000 |
The timestamp when extension was modified. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListEnabledExtensionsForProject
&EventCode=commit-file
&ProjectId=10000
&FileType=10
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListEnabledExtensionsForProjectResponse>
<RequestId>4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22</RequestId>
<Extensions>
<ExtensionCode>a94a8e23bc0b4dfab9a5e4d2f374d645</ExtensionCode>
<ExtensionName>Prohibit the use of the MAX_PT function</ExtensionName>
<TenantId>529889518659842</TenantId>
<CreateUser>3444434343555</CreateUser>
<ModifyUser>34452335611988</ModifyUser>
<ExtensionDesc>Whether the SQL script contains the MAX_PT function</ExtensionDesc>
<Owner>21323672*******55500</Owner>
<ParameterSetting>extension.fileType.23.deploy-file.enabled=true</ParameterSetting>
<GmtCreate>1660117173</GmtCreate>
<GmtModified>1569308162000</GmtModified>
</Extensions>
</ListEnabledExtensionsForProjectResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "4F2CA7ED-27E5-59EA-A8C4-F1F7A1FF0B22",
"Extensions" : [ {
"ExtensionCode" : "a94a8e23bc0b4dfab9a5e4d2f374d645",
"ExtensionName" : "Prohibit the use of the MAX_PT function",
"TenantId" : 529889518659842,
"CreateUser" : "3444434343555",
"ModifyUser" : "34452335611988",
"ExtensionDesc" : "Whether the SQL script contains the MAX_PT function",
"Owner" : "21323672*******55500",
"ParameterSetting" : "extension.fileType.23.deploy-file.enabled=true",
"GmtCreate" : 1660117173,
"GmtModified" : 1569308162000
} ]
}
Error codes
For a list of error codes, visit the API Error Center.