-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added volume snapshot querying #11
Conversation
ovh/plugin.go
Outdated
"ovh_cloud_ssh_key": tableOvhCloudSshKey(), | ||
"ovh_cloud_storage": tableOvhCloudStorage(), | ||
"ovh_cloud_volume": tableOvhCloudVolume(), | ||
"ovh_cloud_volume_snapshot": tableOvhCloudVolumeSnapshot(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the indentation here?
func tableOvhCloudVolumeSnapshot() *plugin.Table { | ||
return &plugin.Table{ | ||
Name: "ovh_cloud_volume_snapshot", | ||
Description: "A volume is an independent additional disk.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description should be updated I guess.
{ | ||
Name: "id", | ||
Type: proto.ColumnType_STRING, | ||
Description: "ID.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "ID.", | |
Description: "Snapshot ID.", |
{ | ||
Name: "creationDate", | ||
Type: proto.ColumnType_TIMESTAMP, | ||
Description: "Volume creation date.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "Volume creation date.", | |
Description: "Snapshot creation date.", |
{ | ||
Name: "volumeId", | ||
Type: proto.ColumnType_STRING, | ||
Description: "Volume Snapshot ID.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "Volume Snapshot ID.", | |
Description: "Volume source ID.", |
{ | ||
Name: "status", | ||
Type: proto.ColumnType_STRING, | ||
Description: "Volume Snapshot Status. (available, creating, deleting, error, error_deleting)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "Volume Snapshot Status. (available, creating, deleting, error, error_deleting)", | |
Description: "Volume Snapshot Status (available, creating, deleting, error, error_deleting).", |
Btw thanks for your contribution! I appreciate it. |
Will send new PR with corrections |
Added volume snapshot querying.
OVH API : https://api.ovh.com/console/#/cloud/project/{serviceName}/volume/snapshot~GET