GetConnector

Updated at:

Retrieves details about a connector. This operation currently supports only file connectors.

Operation description

  • To call this API, a RAM user (sub-account) must first obtain the API permissions for Alibaba Cloud Model Studio (the AliyunBailianDataFullAccess policy, which includes the sfm:GetConnector permission) and join a business space. An Alibaba Cloud account (primary account) can call this API directly without authorization. We recommend using the latest Alibaba Cloud Model Studio SDK to call this API.
  • This operation is idempotent.

Throttling: This operation is subject to throttling. Do not exceed a frequency of 5 calls per second. If a request is throttled, try again later.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the API runs successfully, OpenAPI Explorer can automatically generate SDK code examples.

RAM authorization

The following table lists the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details:

  • Action: the specific permission point.

  • Access level: the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: the resource types that support authorization for the operation. Details:

    • Required resource types are marked with a preceding asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is shown.
  • Condition key: the condition keys defined by the cloud service itself.

  • Dependent action: other permissions required for the operation to succeed. The caller must have the permissions of all dependent actions before the operation can succeed.

Action

Access level

Resource type

Condition key

Dependent action

sfm:GetConnector

get

*All Resource

*

NoneNone

Request syntax

GET /{WorkspaceId}/datacenter/connector HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

The ID of the business space to which the file belongs. To obtain this ID, see Use business spaces.

llm-3z7uw7fwz0vxxxx

Request parameters

Parameter

Type

Required

Description

Example

ConnectorName

string

No

The name of the connector to query. An exact match is required.

my-connector

ConnectorId

string

No

The ID of the connector. You can find this ID in the Model Studio console.

conn_file_xxxx

Response elements

Element

Type

Description

Example

object

The response object.

Code

string

The result code.

success

Data

object

The returned data.

ConnectorId

string

The ID of the connector.

conn_file_e0c9db4030b2465a9478028f7d76cd92_1234

ConnectorName

string

The name of the connector.

name

ConnectorType

string

The type of the connector.

FILE

Description

string

The description of the connector.

Description

Message

string

The error message.

Requests throttling triggered.

RequestId

string

The request ID.

7BA8ADD9-53D6-53F0-918F-A1E776AD230E

Status

string

The status code of the response.

200

Success

boolean

Indicates whether the request was successful. The valid values are:

  • true: The call was successful.

  • false: The call failed.

True

Examples

Success response

JSON format

{
  "Code": "success",
  "Data": {
    "ConnectorId": "conn_file_e0c9db4030b2465a9478028f7d76cd92_1234",
    "ConnectorName": "name",
    "ConnectorType": "FILE",
    "Description": "Description"
  },
  "Message": "Requests throttling triggered.",
  "RequestId": "7BA8ADD9-53D6-53F0-918F-A1E776AD230E",
  "Status": "200",
  "Success": true
}

Error codes

For more error codes, visit the Error Center.

Release notes

See Release Notes for a complete list.