Projects APIs
The Projects service provides operations for managing the lifecycle of Harbor project that stores and distributes container repositories and images.
Operations
POST
Create Registry Harbor Projects
Creates a project in a Harbor registry using the supplied specification. In vSphere 7.0, a Harbor registry is deployed in a vSphere cluster with vSphere namespaces enabled. When a namespace is created, a project with same name as the namespace is created in the Harbor registry, so this operation should not be called. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.content.Registry referenced by the parameter registry requires System.Read.
GET
List Registry Harbor Projects
Returns basic information of all projects in a Harbor registry. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.content.Registry referenced by the parameter registry requires System.Read.
DELETE
Delete Registry Project Harbor
Deletes the specified project from Harbor registry. Repositories and images in the project will be removed upon project deletion. Storage space of deleted images in the project will be reclaimed through next scheduled Harbor registry garbage collection. In vSphere 7.0, a Harbor registry is deployed in a vSphere cluster with vSphere namespaces enabled. When a namespace is deleted, a project with same name as the namespace is deleted from the Harbor registry, so this operation should not be called. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.content.Registry referenced by the parameter registry requires System.Read. - The resource com.vmware.vcenter.content.Registry.Harbor.Project referenced by the parameter project requires System.Read.
GET
Get Registry Project Harbor
Returns detailed information about the specified Harbor project. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.content.Registry referenced by the parameter registry requires System.Read. - The resource com.vmware.vcenter.content.Registry.Harbor.Project referenced by the parameter project requires System.Read.
POST
Purge Registry Project
Remove all repositories, images and members in the project. Storage space of deleted images in the project will be reclaimed through next scheduled Harbor registry garbage collection. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.content.Registry referenced by the parameter registry requires System.Read. - The resource com.vmware.vcenter.content.Registry.Harbor.Project referenced by the parameter project requires System.Read.