Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed localhost:9015 to nodeport

...

Code Block
languagebash
curl -i -d @create_rbdefinition.json -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition

Command to UPLOAD artifact for Definition Created:

Code Block
languagebash
curl -i --data-binary @vault-consul-dev.tar.gz -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/content

...

Code Block
languagebash
# Get all Definitions
curl -i http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition

# Get one Definition
curl -i http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1

...

Code Block
languagebash
#Delete all versions of definition
curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef
#Delete a particular version of definition
curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1

...

Code Block
languagebash
#Replace localhost:9015NODE_IP:30280/api/multicloud-k8s/v1 with NODEPORTNODE_PORT:30280/v1api/multicloud-k8s/v1 if you are connec
curl -i -d @create_rbprofile.json -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/profile

...

Code Block
languagebash
curl -i --data-binary @profile.tar.gz -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/profile/p1/content

...

Code Block
languagebash
# Get all Profiles
curl -i http://localhost:9015 http://NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/profile

# Get one Profile
curl -i http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/profile/p1

...

Code Block
languagebash
curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/v1/profile/p1

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -d @create_rbinstance.json http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/instance

This command returns the following JSON:

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -X DELETE http://NODE_IP:30280/api//localhost:9015multicloud-k8s/v1/v1/instance/ZKMTSaxv


GET Instantiated Kubernetes resources

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -X GET http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/instance/ZKMTSaxv

LIST all Instantiated Kubernetes resources

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -X GET http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/instance

Configuration API

...

curl -i -d @create_config_template.json -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/config-template/

...

curl -i --data-binary @kafka-config.tar.gz -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/config-template/{name}

...

# Get all Templates
curl -i http://localhost:9015i http://NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/config-template
 
# Get one Template
curl -i http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/config-template/{name}

...

curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/rb/definition/{name}/{version}/config-template/{name}

...

curl -i -d @values.json -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/config

...

# Get all Values
curl -i http://NODE_IP:30280/api//localhost:9015multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/config
 
# Get one Value with config name
curl -i http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i -d @values.json -X PUT http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i  -d @values.json -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/tagit

...

curl -i -d @values.json -X POST http://localhost:9015http://NODE_IP:30280/api/multicloud-k8s/v1/v1/rb/definition/{name}/{version}/profile/{name}/rollback

...

#Using a json file containing content as above;

curl -i -F "metadata=<jsonfile;type=application/json" -F file=@/home/ad_kkkamine/.kube/config -X POST http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/connectivity-info

Command to GET Connectivity Info

curl -i -X GET http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/connectivity-info/{name}

...

curl -i -X DELETE http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/connectivity-info/{name}

...

curl -i -d @update.json -X PUT http://localhost:9015NODE_IP:30280/api/multicloud-k8s/v1/v1/connectivity-info/{name}

...