Obtains the JavaScript (JS) file that a component uses to render the page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeComponentsJs |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. This is a unique identifier generated by Alibaba Cloud for the request. You can use it to troubleshoot and locate issues. |
58A518BC-E4A8-5BD7-AFEA-366046ED9073 |
| ComponentsJs |
string |
The configuration information of the component's JS file. |
[ { "js": "https://xxxxx.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/xxxxx", "name": "python3", "ownType": "sys" } ] |
The ComponentsJs parameter is in the JSONArray format and contains the following fields:
js: The URL of the JS file.
name: The name of the component.
ownType: The type of the component. The value is fixed to sys. Other component types are not supported.
Examples
Success response
JSON format
{
"RequestId": "58A518BC-E4A8-5BD7-AFEA-366046ED9073",
"ComponentsJs": "[\n {\n \"js\": \"https://xxxxx.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/xxxxx\",\n \"name\": \"python3\",\n \"ownType\": \"sys\"\n }\n]"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.