Get Registries Harbor
Get detailed information of the 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
Information about the registry.
{
"cert_chain": [
"string"
],
"cluster": "string",
"creation_time": "string",
"garbage_collection": {
"day_of_week": "SUNDAY",
"hour": 0,
"minute": 0,
"type": "NONE"
},
"health": {
"details": {
"args": [
"string"
],
"default_message": "string",
"id": "string",
"localized": "string",
"params": {
"key": {
"d": 0,
"dt": "string",
"format": "SHORT_DATE",
"i": 0,
"l": {
"id": "string",
"params": "StdLocalizationParam Object"
},
"precision": 0,
"s": "string"
}
}
},
"status": "STARTING"
},
"namespace": "string",
"storage": [
{
"capacity": 0,
"policy": "string",
"used": 0
}
],
"ui_access_url": "string",
"version": "string"
}
Harbor certificate chain in base64 format.
URL to access the UI of the registry.
The date and time when the harbor registry was created.
Garbage collection information for the registry.
Storage information associated with the registry.
Version of the registry.
Identifier of the Harbor namespace in case it is created in a Kubernetes environment. If unset, no Kubernetes namespace is created for the Harbor. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: NamespaceInstance. When operations return a value of this structure as a result, the field will be an identifier for the resource type: NamespaceInstance.
Identifier of the cluster. If unset, container registry is not created on the cluster specified by Harbor.CreateSpec.cluster. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: ClusterComputeResource. When operations return a value of this structure as a result, the field will be an identifier for the resource type: ClusterComputeResource.
Errors
com.vmware.vapi.std.errors.unauthorized : if the user does not have System.Read privilege.
com.vmware.vapi.std.errors.not_found : if a Harbor registry specified by registry could not be found.
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}
x-vmw-doc-operation: get