Cannot create a cluster: Could not create URI: Expected 1 (for Lists) or 2 (for a specific resource) but got 0
Closed this issue · 2 comments
cmoulliard commented
Issue
We cannot create a cluster using the config.json
example defined within the README.md file as we got this error
ocm post --body=my-cluster.json
Error: Could not create URI: Expected 1 (for Lists) or 2 (for a specific resource) but got 0
Cluster config file
{
"name": "mycluster",
"flavour": {
"id": "osd-4"
},
"region": {
"id": "us-east-1"
},
"managed": true
}
igoihman commented
The API endpoint is missing. The command should be ocm post /api/clusters_mgmt/v1/clusters --body=my-cluster.json
cmoulliard commented
Can you then update the README.md page please ?