Updated on 2025-08-14 GMT+08:00

Obtaining an Endpoint

endpoint is the prefix of the file storage address. Combine it with the object's path to get the full access path. In Uploading a File, the path of the uploaded file on the bucket is returned. You can call the API in this section to obtain the endpoint and combine it with the returned path to get the full access path.

URI

GET Huawei Cloud Astro Zero domain name/u-route/baas/sys/v1.1/connectors/{connector_type}/{connector_name}/getendpoint

Table 1 URI parameters

Parameter

Mandatory

Type

Description

connector_type

Yes

String

Explanation

Type of a connector.

Constraints

None

Value

  • obs: connector for interconnecting with OBS.
  • minio: connector for connecting to MINIO.
  • objectstorageproxy: object storage proxy type.

Default value

None

connector_name

Yes

String

Explanation

Name of the connector instance, that is, the connector instance name set when the connector is created.

Constraints

None

Value

None

Default value

None

Request Parameters

None

Response Parameters

Table 2 Response parameters

Parameter

Type

Description

resCode

String

Explanation

Return code.

Value

If the request is successful, 0 is returned. For details about other error codes, see Error Codes.

resMsg

String

Explanation

Message returned.

Value

If the request is successful, "Success" is returned. In other cases, an error message is returned.

result

Object

Explanation

If the request is successful, the endpoint is returned, that is, the prefix of the file storage address. The complete access address of the file is the path of the file to be uploaded returned by endpoint and the file returned in Uploading a File.

Example Request

An OBS connector has been created. The connector instance name is Namespace __TestOBS. Run the following request to obtain the endpoint, that is, the prefix of the file storage address.

GET https://Huawei Cloud Astro Zero domain name/u-route/baas/sys/v1.1/connectors/obs/Namespace __TestOBS/getendpoint

Example Response

{
 "resCode": "0",
	"resMsg": "Success",
 "result": {
  "endpoint": "https://test.obs.***.com/"
 }
}

After the 1.txt file is successfully uploaded to the a/b/c path of the bucket by calling the API in Uploading a File, the complete access address of the file is https://test.obs.***.com/a/b/c/1.txt.

Status Code

See Status Codes.

Error Code

See Error Codes.