Validates cluster profile import
POST/v1/clusterprofiles/import/validate
Validates cluster profile import
Request
Header Parameters
Scope the request to the specified project uid
- application/json
Body
Array [
Array [
]
Array [
]
]
Array [
]
metadata
object
Cluster profile import metadata
Cluster profile description
labels
object
Cluster profile labels
Cluster profile name
spec
object
Cluster profile import spec
template
object
Cluster profile import template
Cluster profile cloud type
packs
object[]
Cluster profile packs array
Pack layer [ "os", "k8s", "cni", "csi", "addon" ]
manifests
object[]
Pack manifests array
Pack manifest content in yaml
Pack manifest name
Pack name
registry
object
Pack registry import entity
matchingRegistries
object[]
If true then pack registry is private and is not accessible for the pack sync
Pack registry kind [ "pack", "helm", "oci" ]
Pack registry name
OCI registry provider type [ "helm", "pack", "zarf" ]
Pack registry uid
metadata
object
Pack registry metadata
If true then pack registry is private and is not accessible for the pack sync
Pack registry kind [ "pack", "helm", "oci" ]
Pack registry name
OCI registry provider type [ "helm", "pack", "zarf" ]
Pack registry uid
Pack version tag
Pack type [ "spectro", "helm", "manifest", "oci" ]
Pack values are the customizable configurations for the pack
Pack version
Cluster profile type [ "cluster", "infra", "add-on", "system" ]
variables
object[]
List of unique variable fields defined for a cluster profile with schema constraints
The default value of the variable
Variable description
Unique display name of the variable
Possible values: [string
, number
, boolean
, ipv4
, ipv4cidr
, ipv6
, version
]
Default value: string
Format type of the variable value
If true, then variable will be hidden for overriding the value. By default the hidden flag will be set to false
If true, then variable value can't be editable. By default the immutable flag will be set to false
If true, then default value will be masked. By default the isSensitive flag will be set to false
Variable name
Regular expression pattern which the variable value must match
Flag to specify if the variable is optional or mandatory. If it is mandatory then default value must be provided
Cluster profile version
Responses
- 200
Cluster profile import validated response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Array [
]
metadata
object
Cluster profile import metadata
Cluster profile description
labels
object
Cluster profile labels
Cluster profile name
spec
object
Cluster profile import spec
template
object
Cluster profile import template
Cluster profile cloud type
packs
object[]
Cluster profile packs array
Pack layer [ "os", "k8s", "cni", "csi", "addon" ]
manifests
object[]
Pack manifests array
Pack manifest content in yaml
Pack manifest name
Pack name
registry
object
Pack registry import entity
matchingRegistries
object[]
If true then pack registry is private and is not accessible for the pack sync
Pack registry kind [ "pack", "helm", "oci" ]
Pack registry name
OCI registry provider type [ "helm", "pack", "zarf" ]
Pack registry uid
metadata
object
Pack registry metadata
If true then pack registry is private and is not accessible for the pack sync
Pack registry kind [ "pack", "helm", "oci" ]
Pack registry name
OCI registry provider type [ "helm", "pack", "zarf" ]
Pack registry uid
Pack version tag
Pack type [ "spectro", "helm", "manifest", "oci" ]
Pack values are the customizable configurations for the pack
Pack version
Cluster profile type [ "cluster", "infra", "add-on", "system" ]
variables
object[]
List of unique variable fields defined for a cluster profile with schema constraints
The default value of the variable
Variable description
Unique display name of the variable
Possible values: [string
, number
, boolean
, ipv4
, ipv4cidr
, ipv6
, version
]
Default value: string
Format type of the variable value
If true, then variable will be hidden for overriding the value. By default the hidden flag will be set to false
If true, then variable value can't be editable. By default the immutable flag will be set to false
If true, then default value will be masked. By default the isSensitive flag will be set to false
Variable name
Regular expression pattern which the variable value must match
Flag to specify if the variable is optional or mandatory. If it is mandatory then default value must be provided
Cluster profile version
{
"metadata": {
"description": "string",
"labels": {},
"name": "string"
},
"spec": {
"template": {
"cloudType": "string",
"packs": [
{
"layer": "string",
"manifests": [
{
"content": "string",
"name": "string"
}
],
"name": "string",
"registry": {
"matchingRegistries": [
{
"isPrivate": true,
"kind": "string",
"name": "string",
"providerType": "string",
"uid": "string"
}
],
"metadata": {
"isPrivate": true,
"kind": "string",
"name": "string",
"providerType": "string",
"uid": "string"
}
},
"tag": "string",
"type": "string",
"values": "string",
"version": "string"
}
],
"type": "string"
},
"variables": [
{
"defaultValue": "string",
"description": "string",
"displayName": "string",
"format": "string",
"hidden": true,
"immutable": true,
"isSensitive": true,
"name": "string",
"regex": "string",
"required": true
}
],
"version": "string"
}
}