Create Registries Harbor Deprecated
Creates a Harbor registry in the cluster.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"spec": {
"storage": [
{
"policy": "string"
}
]
}
}
A unique token generated on the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751. This token can be used to guarantee idempotent creation. If not specified, creation is not idempotent.
Authentication
Response
Response BodyResponse Body
Identifier of the deployed registry. The result will be an identifier for the resource type: com.vmware.vcenter.content.Registry.
{
"value": "string"
}
Identifier of the deployed registry. The result will be an identifier for the resource type: com.vmware.vcenter.content.Registry.
Errors
com.vmware.vapi.std.errors.already_exists : if a Harbor already exists in the associated cluster. | com.vmware.vapi.std.errors.unsupported : if Harbor.CreateSpec.cluster does not have vSphere namespace enabled. | com.vmware.vapi.std.errors.invalid_argument : if spec contains any errors.
com.vmware.vapi.std.errors.unauthorized : if the user does not have ContentLibrary.ManageRegistry and/or CertificateAuthority.Manage privilege, or user does not have ContentLibrary.ManageClusterRegistryResource privilege on Harbor.CreateSpec.cluster.
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
cURL Command
Vendor Extensions
x-vmw-doc-new-method: post
x-vmw-doc-new-path: /api/vcenter/content/registries/harbor
x-vmw-doc-operation: create