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.
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¶
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 |
|---|---|---|---|
|
string |
Yes |
The publication name to check. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"available": true
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
response data. |
|
boolean |
Whether the name is available at the time of current check. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
Empty on error. |