Lists all supported parser types for the specified file type (extension).
Usage notes
- Before calling this operation, a RAM user must obtain Alibaba Cloud Model Studio API permissions (
AliyunBailianDataFullAccessorAliyunBailianDataReadOnlyAccess, both of which include sfm:GetAvailableParserTypes) and join a workspace. An Alibaba Cloud account can call this operation directly without additional authorization. We recommend using the latest Alibaba Cloud Model Studio SDK. - This operation is idempotent.
Try it out
You can call this operation in OpenAPI Explorer without calculating a signature. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Try it out
Authorization information
The following table describes the authorization information for this API operation. You can use this information in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call the operation. The columns are described as follows:
- Action: a specific permission.
- Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources for which the action supports authorization:
- Required resource types are marked with an asterisk (*).
- Actions that do not support resource-level authorization use
All resources.
- Condition key: a condition key defined by the cloud service.
- Dependent action: an additional permission required to perform the action. The caller must also have permission to perform the dependent action.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| sfm:GetAvailableParserTypes | get | *All resources* | None | None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The ID of the workspace that contains the file. For information about how to obtain it, see Use workspaces. | llm-3shx2gu255oqxxxx |
| FileType | string | Yes | The file type (extension) for which to retrieve supported parsers. Valid values:
|
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | The request ID. | 17204B98-7734-4F9A-8464-2446XXXXXXX |
| Data | object | The business data returned when the request succeeds. | |
| FileType | string | The file type, which is the same as the FileType request parameter. | |
| ParserList | array<object> | The parsers that support this file type. | |
| ParserList | object | A parser object. | |
| DisplayName | string | The display name of the parsing method. | Intelligent document parsing |
| Parser | string | The parser code. Valid values:
| DOCMIND |
| Status | string | The status code returned by the operation. | 200 |
| Success | boolean | Indicates whether the API call succeeded. Valid values:
| true |
| Message | string | The error message. | User not authorized to operate on the specified resource |
| Code | string | The returned error code. | DataCenter.Throttling |
Examples
Sample success response
JSON format