Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated port

...

Code Block
languagebash
curl -i -d @create_rbdefinition.json -X POST http://localhost:80819015/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:80819015/v1/rb/definition/test-rbdef/v1/content

...

Code Block
languagebash
# Get all Definitions
curl -i http://localhost:80819015/v1/rb/definition/

# Get one Definition
curl -i http://localhost:80819015/v1/rb/definition/test-rbdef/v1

...

Code Block
languagebash
#Delete all versions of definition
curl -i -X DELETE http://localhost:80819015/v1/rb/definition/test-rbdef
#Delete a particular version of definition
curl -i -X DELETE http://localhost:80819015/v1/rb/definition/test-rbdef/v1

...

Code Block
languagebash
curl -i -d @create_rbprofile.json -X POST http://localhost:80819015/v1/rb/definition/test-rbdef/v1/profile

...

Code Block
languagebash
curl -i --data-binary @profile.tar.gz -X POST http://localhost:80819015/v1/rb/definition/test-rbdef/v1/profile/p1/content

...

Code Block
languagebash
# Get all Profiles
curl -i http://localhost:80819015/v1/rb/definition/test-rbdef/v1/profile

# Get one Profile
curl -i http://localhost:80819015/v1/rb/definition/test-rbdef/v1/profile/p1

...

Code Block
languagebash
curl -i -X DELETE http://localhost:80819015/v1/rb/definition/test-rbdef/v1/profile/p1

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -d @create_rbinstance.json http://localhost:80819015/v1/instance

This command returns the following JSON:

...

Code Block
languagebash
titleCommand to Instantiate a Profile
curl -X DELETE http://localhost:80819015/v1/instance/ZKMTSaxv


Configuration API's

...

curl -i -d @create_config_template.json -X POST http://localhost:80819015/v1/rb/definition/{name}/{version}/config-template/

...

curl -i --data-binary @kafka-config.tar.gz -X POST http://localhost:80819015/v1/rb/definition/{name}/{version}/config-template/{name}

...

# Get all Templates
curl -i http://localhost:80819015/v1/rb/definition/{name}/{version}/config-template
 
# Get one Template
curl -i http://localhost:80819015/v1/rb/definition/{name}/{version}/config-template/{name}

...

curl -i -X DELETE http://localhost:80819015/rb/definition/{name}/{version}/config-template/{name}

...

curl -i -d @values.json -X POST http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/config

...

# Get all Values
curl -i http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/config
 
# Get one Value with config name
curl -i http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i -X DELETE http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i -d @values.json -X PUT http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/config/{name}

...

curl -i  -d @values.json -X POST http://localhost:80819015/v1/rb/definition/{name}/{version}/profile/{name}/tagit

...

curl -i -d @values.json -X POST http://localhost:80819015/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:80819015/v1/connectivity-info

Command to GET Connectivity Info

curl -i -X GET http://localhost:80819015/v1/connectivity-info/{name}

...

curl -i -X DELETE http://localhost:80819015/v1/connectivity-info/{name}

...

curl -i -d @update.json -X PUT http://localhost:80819015/v1/connectivity-info/{name}

...