Creates a basic oci registry
POSThttps://api.spectrocloud.com/v1/registries/oci/basic
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Creates a basic oci registry
Request
Query Parameters
skipPackSync boolean
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
kindstring
metadata object
spec object
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/registries/oci/basic' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:48.046Z",
"deletionTimestamp": "2023-12-01T21:31:48.046Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:48.046Z",
"name": "string",
"uid": "string"
},
"spec": {
"auth": {
"password": "string",
"tls": {
"ca": "string",
"certificate": "string",
"enabled": true,
"insecureSkipVerify": true,
"key": "string"
},
"token": "string",
"type": "noAuth",
"username": "string"
},
"baseContentPath": "string",
"basePath": "string",
"endpoint": "string",
"providerType": "helm",
"registryUid": "string",
"scope": "string"
}
}'