REST API - list

vcenter content registries harbor projects: list

Returns basic information of all projects in a Harbor registry.

Request:

HTTP request

GET https://{server}/rest/vcenter/content/registries/harbor/{registry}/projects

Path Parameters

Name Type Description
Required
registry string Identifier of the registry.

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "scope""PUBLIC",
            "name""string",
            "project""obj-103"
        },
        {
            "scope""PUBLIC",
            "name""string",
            "project""obj-103"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value summary[] The list of summary information of all Harbor projects.
value[].project string Identifier of the harbor project.

When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.content.Registry.Harbor.Project.

value[].name string Name of the Harbor project. Should be between 2-63 characters long alphanumeric string and may contain the following characters: a-z,0-9, and '-'. Must be starting with characters or numbers, with the '-' character allowed anywhere except the first or last character.

value[].scope string Access type of a Harbor project.

In a project defines access levels of the project. Value is one of:
PUBLIC: A Harbor project can be accessed by everyone.
PRIVATE: A Harbor project can only be accessed by assigned users.

Errors:

HTTP Status Code Type Description
404 not_found if registry cannot be found.
500 error if the system reports an error while responding to the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user does not have System.Read privilege.