Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: more documentation for variables #53

Merged
merged 1 commit into from
Apr 23, 2024
Merged

README.md: more documentation for variables #53

merged 1 commit into from
Apr 23, 2024

Conversation

outscale-mgo
Copy link
Contributor

No description provided.

variable.md Outdated
vm_id=$(osc-cli api CreateVms --ImageId $id | jq .Vms[0].VmId)
oapi-cli CreateTags --ResourceIds "[$vm_id]" --Tags '[ { "Key": "Name", "Value": "joe" } ]'
```
Moreover if you want to retrive the ImageId promatically, You need another call to ReadImage:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retrieve*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

promatically ? (do you mean programmatically )?

variable.md Outdated
oapi-cli CreateTags --ResourceIds "[$vm_id]" --Tags '[ { "Key": "Name", "Value": "joe" } ]'
```

With oapi-cli you can now chain the call, so you don't have to keep intermediary variables.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the calls*

@outscale-mgo outscale-mgo merged commit 9d288ed into master Apr 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants