Check if ecr registry is valid
POSThttps://api.spectrocloud.com/v1/registries/oci/ecr/validate
Returns no contents if ecr registry is valid else error.
Request
- application/json
Body
required
baseContentPathstring
OCI ecr registry content base path
credentials
object
defaultRegionstring
endpointstringrequired
isPrivatebooleanrequired
providerTypestring
Possible values: [helm
, pack
]
Default value: helm
registryUidstring
Ecr registry uid
scopestring
tls
object
Responses
- 204
Ok response without content
Response Headers
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/registries/oci/ecr/validate' \
-H 'Content-Type: application/json' \
-d '{
"baseContentPath": "string",
"credentials": {
"accessKey": "string",
"credentialType": "secret",
"partition": "aws",
"policyARNs": [
"string"
],
"secretKey": "string",
"sts": {
"arn": "string",
"externalId": "string"
}
},
"defaultRegion": "string",
"endpoint": "string",
"isPrivate": true,
"providerType": "helm",
"registryUid": "string",
"scope": "string",
"tls": {
"ca": "string",
"certificate": "string",
"enabled": true,
"insecureSkipVerify": true,
"key": "string"
}
}'