• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Glance
  5. Image Members
  6. Update Image Member

Update Image Member

Function Description

This interface is used to update a shared image member.

Interface Format

Method

URI

Description

PUT

/v2/images/{image_id}/members/{member_id}

Updates a shared image member.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

Parameter

Type

Mandatory

Description

status

String

Yes

Specifies the status of the shared image member.

Values:

  • pending
  • accepted
  • rejected

Response Parameter

Parameter

Type

Mandatory

Description

status

String

Yes

Specifies the status of the shared image member.

Values:

  • pending
  • accepted
  • rejected

created_at

String

Yes

Specifies the time when the shared image member was created.

updated_at

String

Yes

Specifies the time when the shared image member was updated.

image_id

String

Yes

Specifies the ID of an image to be shared.

member_id

String

Yes

Specifies the ID of the shared image member.

schema

String

Yes

Specifies the URL for the view of the shared image member.

Request Example

PUT  /v2/images/d164b5df-1bc3-4c3f-893e-3e471fd16e64/members/edc89b490d7d4392898e19b2deb34797
{
  "status":"accepted"

}

Response Example

{
  "status": "accepted",
  "created_at": "2016-09-01T02:05:14Z",
  "updated_at": "2016-09-01T02:37:11Z",
  "image_id": "d164b5df-1bc3-4c3f-893e-3e471fd16e64",
  "member_id": "edc89b490d7d4392898e19b2deb34797",
  "schema": "/v2/schemas/member"

}

Error Code

N/A