Skip to main content

GetNamespace

Description

call to GetNamespace query details of the specified namespace.

Request Method

POST

Request Path

/apsara/route/cr/GetNamespace

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api
NamespaceBODYstringYesNo sample value for this parameter.namespace name, with a length limit of 2 to 30. lowercase letters, numbers, middle scores (-), and underscores (_) are supported (cannot start with middle scores or underscores).

Return data

NameTypeSample valueDescription
authorizeTypestringno demo valuerequests the user's permission to operate the namespace, which is limited to console authorization.
namespaceStatusstringno demo valuenamespace state (NORMAL, DELETING).
namespacestringno demo valuenamespace name.
defaultVisibilitystringno demo valuethe default visibility of the repository created in this namespace.
autoCreatestringno demo valuewhether push images are allowed to automatically create warehouses with corresponding names. If you close, you need to create a warehouse before pushing the image.

Example

Successful Response example

{
"authorizeType":"no demo value",
"namespaceStatus":"no demo value",
"namespace":"no demo value",
"defaultVisibility":"no demo value",
"autoCreate":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}