Returns the metadata of a resource in the current project, such as its owner, type, size, creation time, and MD5 checksum.
Syntax
desc resource <resource_name>;Parameters
| Parameter | Required | Description |
|---|---|---|
resource_name | Yes | The name of an existing resource. |
Output
| Column | Description |
|---|---|
Name | The name of the resource. |
Owner | The account that owns the resource. |
Type | The resource type: JAR, FILE, ARCHIVE, PY, or TABLE. |
Comment | The comment associated with the resource. |
CreatedTime | The time when the resource was created. |
LastModifiedTime | The time when the resource was last updated. |
LastUpdator | The account that performed the last update. This field is blank if the resource has not been updated since it was first uploaded. |
Size | The size of the resource file, in bytes. |
Md5sum | The MD5 checksum of the resource file. |
Usage notes
Resource names are not case-sensitive.
resource_Aandresource_arefer to the same resource.
Examples
The following example shows how to view the metadata of a JAR resource.
-- View information of resource topn_new.jar.
desc resource topn_new.jar;Output:
Name topn_new.jar
Owner ALIYUN$****@test.aliyunid.com
Type JAR
Comment cloudopenapi
CreatedTime 2020-12-29 13:55:11
LastModifiedTime 2020-12-29 13:55:11
LastUpdator
Size 11438795
Md5sum 8bcf6aabf****56c0LastUpdator is blank because this resource has not been updated since it was first uploaded.What's next
ADD ARCHIVE: Adds an archive file as a resource.
ADD FILE: Adds a file as a resource.
ADD JAR: Adds a JAR file as a resource.
ADD PY: Adds Python code as a resource.
ADD TABLE: Adds a table as a resource.
LIST RESOURCES: Lists all resources in a project.
ALIAS: Creates an alias for a resource.
GET RESOURCE: Downloads a resource.
DROP RESOURCE: Deletes a resource.