The member-get command to get the details of image member is not available in the glance client.
#glance version and output of glance help
[stack@mridula-test ~]$glance help | grep member
member-create Create member for a given image.
member-delete Delete image member.
member-list Describe sharing permissions by image.
member-update Update the status of a member for a given image.
[stack@mridula-test ~]$ glance member-get
usage: glance [--version] [-d] [-v] [--get-schema] [-f]
[--os-image-url OS_IMAGE_URL]
[--os-image-api-version OS_IMAGE_API_VERSION]
[--profile HMAC_KEY] [--os-region-name OS_REGION_NAME]
[--os-auth-token OS_AUTH_TOKEN]
[--os-service-type OS_SERVICE_TYPE]
[--os-endpoint-type OS_ENDPOINT_TYPE] [--insecure]
[--os-cacert <ca-certificate>] [--os-cert <certificate>]
[--os-key <key>] [--timeout <seconds>] [--collect-timing]
[--os-auth-type <name>] [--os-auth-url OS_AUTH_URL]
[--os-system-scope OS_SYSTEM_SCOPE]
[--os-domain-id OS_DOMAIN_ID] [--os-domain-name OS_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-trust-id OS_TRUST_ID]
[--os-default-domain-id OS_DEFAULT_DOMAIN_ID]
[--os-default-domain-name OS_DEFAULT_DOMAIN_NAME]
[--os-user-id OS_USER_ID] [--os-username OS_USERNAME]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-password OS_PASSWORD]
<subcommand> ...
glance: error: argument <subcommand>: invalid choice: 'member-get' (choose from 'explain', 'image-create', 'image-create-via-import', 'image-deactivate', 'image-delete', 'image-download', 'image-import', 'image-list', 'image-reactivate', 'image-show', 'image-stage', 'image-tag-delete', 'image-tag-update', 'image-tasks', 'image-update', 'image-upload', 'import-info', 'location-add', 'location-delete', 'location-update', 'md-namespace-create', 'md-namespace-delete', 'md-namespace-import', 'md-namespace-list', 'md-namespace-objects-delete', 'md-namespace-properties-delete', 'md-namespace-resource-type-list', 'md-namespace-show', 'md-namespace-tags-delete', 'md-namespace-update', 'md-object-create', 'md-object-delete', 'md-object-list', 'md-object-property-show', 'md-object-show', 'md-object-update', 'md-property-create', 'md-property-delete', 'md-property-list', 'md-property-show', 'md-property-update', 'md-resource-type-associate', 'md-resource-type-deassociate', 'md-resource-type-list', 'md-tag-create', 'md-tag-create-multiple', 'md-tag-delete', 'md-tag-list', 'md-tag-show', 'md-tag-update', 'member-create', 'member-delete', 'member-list', 'member-update', 'stores-delete', 'stores-info', 'task-create', 'task-list', 'task-show', 'bash-completion', 'help', 'bash_completion')
[stack@mridula-test ~]glance --version
3.4.0
#api-ref guide
https://docs.openstack.org/api-ref/image/v2/?expanded=show-image-member-details-detail,show-image-detail,list-images-detail#show-image-member-details
Reviewed: https:/ /review. opendev. org/c/openstack /python- glanceclient/ +/802890 /opendev. org/openstack/ python- glanceclient/ commit/ cb084f5289c5c23 bdb9fabb413a81b 32acb5a498
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit cb084f5289c5c23 bdb9fabb413a81b 32acb5a498
Author: Mridula Joshi <email address hidden>
Date: Thu Jul 29 12:25:37 2021 +0000
Add member-get command
It is observed that python-glanceclient was missing support for GET /v2/image/ {image_ id}/member/ {member_ id} API.
This patch adds new command `member-get` to support this missing operation.
Closes-Bug: #1938154
Change-Id: I3709f6a39535aa 45bee70f468f015 ac60a1375a8