List trusts (GET /v3/OS-TRUST/trusts{? trustee_user_id,trustor_user_id})

Lists trusts.

Request headers

Content-type

Indicates the format of content defined in the MIME specification.

Specify application/json. (required)

Data type Cardinality
xsd:string 1..1

Accept

Indicates the accept format defined in the MIME specification.

Specify application/json. (optional)

Data type Cardinality
xsd:string 1..1

X-Auth-Token

Valid authentication token

Data type Cardinality
xsd:string 1..1

Request parameters

trustee_user_id

The trustee user ID

It is necessary to specify either "trustee_user_id" or "trustor_user_id". However, this can only be specified by the operator user.

Data type Cardinality Parent element Child element
xsd:string 0..1 xsd:string 0..1

trustor_user_id

The trustor user ID

It is necessary to specify either "trustee_user_id" or "trustor_user_id". However, this can only be specified by the operator user.

Data type Cardinality Parent element Child element
xsd:string 0..1 None None

Response headers

HTTP status code

Returns the HTTP status code of the request.

One of the following values will be returned.

200:
Normal completion
400:
Invalid access (invalid parameter, etc.)
401:
Authentication error
403:
Cannot access (no privileges)
404:
No applicable resources
409:
Data conflict occurred
500:
Unexpected error
501:
Has not been implemented
503:
Cannot use service
Data type Cardinality
int 1..1

Vary

By setting or changing the following header, notification is given that expressions can be requested in a different file format.

X-Auth-Token

Data type Cardinality
xsd:string 1..1

Content-Type

Indicates the format of content defined in the MIME specification.

application/json

Data type Cardinality
xsd:string 1..1

Content-Length

Indicates the length of an entity in bytes.

Data type Cardinality
int 1..1

Date

Indicates the date when the request was created.

Data type Cardinality
date 1..1

Response elements

links

Link information

Data type Cardinality Parent element Child element
Element 1..1 None self

previous

next

trusts

trusts object

Data type Cardinality Parent element Child element
Element 1..1 None (trust)

(trust)

trust object (object name is not displayed)

Data type Cardinality Parent element Child element
Element 1..n trusts impersonation

trustor_user_id

links

remaining_uses

expires_at

trustee_user_id

project_id

id

impersonation

The impersonation settings

Data type Cardinality Parent element Child element
xsd:boolean 1..1 (trust) None

trustor_user_id

The trustor user ID

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

links

Link information of trust

Data type Cardinality Parent element Child element
Element 1..1 (trust) self

remaining_uses

Number of times that the token still can be used

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

expires_at

Trust expiry datetime

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

trustee_user_id

The trustee user ID

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

project_id

The project ID assigned to the role that is to be trusted

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

id

Trust ID

Data type Cardinality Parent element Child element
xsd:string 1..1 (trust) None

Example of request


GET /v3/OS-TRUST/trusts
X-Auth-Token: MIIIHgYJKoZIhvcNAQcCoIIIDzCCCAsCAQExC . . .
     

Example of response


HTTP/1.1 200 OK
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 2042
Date: Fri, 05 Sep 2014 07:50:42 GMT

{
    "links": {
        "self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/OS-TRUST/trusts",
        "previous": null,
        "next": null
    },
    "trusts": [
        {
            "impersonation": true,
            "trustor_user_id": "--trustor-user-id--",
            "links": {
                "self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/OS-TRUST/trusts"
            },
            "remaining_uses": null,
            "expires_at": "2015-02-27T18:30:59.000000Z",
            "trustee_user_id": "--trustee-user-id--",
            "project_id": "--project-id--",
            "id": "--trust-id--"
        },
        {
            "impersonation": true,
            "trustor_user_id": "--trustor-user-id--",
            "links": {
                "self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/OS-TRUST/trusts"
            },
            "remaining_uses": null,
            "expires_at": null,
            "trustee_user_id": "--trustee-user-id--",
            "project_id": "--project-id--",
            "id": "--trust-id--"
        }
    ]
}