List Registries Harbor Projects
Returns basic information of all projects in a Harbor registry.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the registry. The parameter must be an identifier for the resource type: com.vmware.vcenter.content.Registry.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
array
of
ContentRegistriesHarborProjectsSummary
of type application/json
The list of summary information of all Harbor projects.
[
{
"name": "string",
"project": "string",
"scope": "PUBLIC"
}
]
Name of the Harbor project. Should be between 1-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.
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.
The Projects.Scope enumerated type in a project defines access levels of the project.
PUBLIC : A Harbor project can be accessed by everyone.
PRIVATE : A Harbor project can only be accessed by assigned users.
Possible values are: PUBLIC , PRIVATE
Errors
com.vmware.vapi.std.errors.unauthorized : if the user does not have System.Read privilege.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: get
x-vmw-doc-deprecated-path: /rest/vcenter/content/registries/harbor/{registry}/projects
x-vmw-doc-operation: list