diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2020-09-02 21:28:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-02 21:28:23 +0000 |
commit | a330e54f63ecadf3b9332e9504cb51f843a2d853 (patch) | |
tree | b8e54b1f171f7a8a0064fdd883fe218e4ec96a7c /src/tools/emcoctl/Readme.md | |
parent | 1898c1f1ece6ec8c02d599f1ca4f1cda1166e0de (diff) | |
parent | d8ed6e76a40b8942c2b56c623dcc097d734e3dca (diff) |
Merge "Update CLI with complete get implementation"
Diffstat (limited to 'src/tools/emcoctl/Readme.md')
-rw-r--r-- | src/tools/emcoctl/Readme.md | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/tools/emcoctl/Readme.md b/src/tools/emcoctl/Readme.md index bf07e563..ecbcf4de 100644 --- a/src/tools/emcoctl/Readme.md +++ b/src/tools/emcoctl/Readme.md @@ -54,20 +54,33 @@ This command will apply the resources in the file. The user is responsible to en `$ emcoctl apply -f filename.yaml` +For applying resources that don't have a json body anchor can be provided as an arguement + +`$ emcoctl apply <anchor>` + +`$ emcoctl apply projects/testvfw/composite-apps/compositevfw/v1/deployment-intent-groups/vfw_deployment_intent_group/instantiate` + + 2. Get Emco Resources -Get the resources in the input file. This command will use the metadata name to get the resource. +Get the resources in the input file. This command will use the metadata name in each of the resources in the file to get information about the resource. `$ emcoctl get -f filename.yaml` +For getting information for one resource anchor can be provided as an arguement + +`$ emcoctl get <anchor>` + +`$ emcoctl get projects/testvfw/composite-apps/compositevfw/v1/deployment-intent-groups/vfw_deployment_intent_group` + 3. Delete Emco Resources -Delete resources in the file. The emcoctl will start deleting resources in the reverse order than given in the file to maintain hierarchy. This command will use the metadata name to delete the resource. +Delete resources in the file. The emcoctl will start deleting resources in the reverse order than given in the file to maintain hierarchy. This command will use the metadata name in each of the resources in the file to delete the resource.. `$ emcoctl delete -f filename.yaml` -4. Get all Emco Resources +For deleting one resource anchor can be provided as an arguement -Get all for the resources in the file. +`$ emcoctl delete <anchor>` -`$ emcoctl getall -f filename.yaml` +`$ emcoctl delete projects/testvfw/composite-apps/compositevfw/v1/deployment-intent-groups/vfw_deployment_intent_group` |