• Native OpenStack API

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

Create Image Member

Function Description

This interface is used to add a shared image member.

Interface Format

Method

URI

Description

POST

/v2/images/{image_id}/members

Adds a shared image member.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

Parameter

Type

Mandatory

Description

member

String

Yes

Specifies the ID of the shared image member to be added, typically, a tenant ID.

Response Parameter

Parameter

Type

Mandatory

Description

status

String

Yes

Specifies the status of the shared image member.

Values can be:

  • 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

POST  /v2/images/d164b5df-1bc3-4c3f-893e-3e471fd16e64/members
{
  "member":"edc89b490d7d4392898e19b2deb34797"

}

Response Example

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

}

Error Code

N/A