Content_Registries_Harbor_CreateSpec

Content_Registries_Harbor_CreateSpec
Content_Registries_Harbor_CreateSpec

The Harbor.CreateSpec structure contains the specification required to create a Harbor registry.

JSON Example
{
    "cluster": "string",
    "garbage_collection": {
        "type": "string",
        "day_of_week": "string",
        "hour": 0,
        "minute": 0
    },
    "storage": [
        {
            "policy": "string",
            "limit": 0
        }
    ]
}
string
cluster
Optional

Identifier of the cluster hosting the registry. If unset, registry will not be created on a specified cluster. This is required in current version, since Harbor can only be created on a cluster with Kubernetes enabled. 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.

garbage_collection
Optional

The Harbor.GarbageCollection structure contains garbage collection configuration for the Harbor registry.

storage
Required

Storage associated with the Harbor registry. The list contains only one storage backing in this version.