Help Center> SoftWare Repository for Container> API Reference> API> Checking the Existence of an Account Used for Image Sharing

Checking the Existence of an Account Used for Image Sharing

Function

Check whether an account used for image sharing exists.

URI

GET /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}

For details about parameters, see Table 1.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

namespace

Yes

String

Organization name

repository

Yes

String

Image repository name

access_domain

Yes

String

Image sharing account name

Request

N/A

Response

Table 2 Response body parameter description

Parameter

Mandatory

Type

Description

exist

Yes

Boolean

true: Exist. false: Not exist.

Response example
{
    "exist":false
}

Status Code

For details about status code, see Table 3.

Table 3 Status code

Status Code

Description

200

Query succeeded.

400

The server failed to process the request.

401

Authentication failed.

500

Internal error.