Check release name

Check whether the publication name is available in the current workspace. The availability of the name is verified again when the publication is created.

HTTP
GET $CLOUDSIGMA_API_BASE/data-share/publishes/check-name

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare the personal access token, workspace ID, and publication name to be checked that can access the target workspace.

Request parameters

Shell
curl --get "$CLOUDSIGMA_API_BASE/data-share/publishes/check-name" \
  --data-urlencode "name=$PUBLICATION_NAME" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Field

Type

Required

Description

name

string

Yes

The publication name to check.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "available": true
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

object

response data.

data.available

boolean

Whether the name is available at the time of current check.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Error description.

data

null

Empty on error.

Last updated on