目前刚开始使用indentity v3的API接口,请求成功之后返回数据如下: 请教教小弟,哪一串字符串表示tokenId呢?
{
"token": {
"methods": ["password"],
"roles": [{
"id": "b8f6ad24e19f4aa29c35f681dbbeda44",
"name": "admin"
}],
"expires_at": "2016-11-10T20:08:18.760845Z",
"project": {
"domain": {
"id": "default",
"name": "Default"
},
"id": "5a356ae2c73d47ebbc8e63cb4b943ae2",
"name": "admin"
},
"catalog": [{
"endpoints": [{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "admin",
"id": "41f1e9fcbe434619b59af20ed9c3a05c"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "public",
"id": "7271c3c5450b49c89a181bad5aa97003"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "internal",
"id": "9700c576f86845ce92d1f4983cd22b39"
}],
"type": "volumev2",
"id": "0c474c6c24e4458489b8dab9e421508e",
"name": "cinderv2"
},
{
"endpoints": [{
"region_id": "RegionOne",
"url": "http://wisteria-controller:5000/v2.0",
"region": "RegionOne",
"interface": "internal",
"id": "6bb0ff4feeeb4316bf504a3b644897c4"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:35357/v2.0",
"region": "RegionOne",
"interface": "admin",
"id": "e814770de13c4ba5b5ce864ab68ac702"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:5000/v2.0",
"region": "RegionOne",
"interface": "public",
"id": "f8c113ad53b34cc19bd296ad17b763ed"
}],
"type": "identity",
"id": "4d56ade6f77a4aea8811eb268c0abf74",
"name": "keystone"
},
{
"endpoints": [{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "public",
"id": "26a90cc0073648a18cf30bb2c037b8d7"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "internal",
"id": "5f7742eed9c34d37b2e84ec13825637e"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8776/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "admin",
"id": "f70a624ef5d54a1993732d2e8676a4a2"
}],
"type": "volume",
"id": "5984b833f36249d8b875f5b88be5edd7",
"name": "cinder"
},
{
"endpoints": [{
"region_id": "RegionOne",
"url": "http://wisteria-controller:9292",
"region": "RegionOne",
"interface": "public",
"id": "2d0b594b858449f99530af810f92d7a4"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:9292",
"region": "RegionOne",
"interface": "internal",
"id": "dba7bce1ada2431f99ffa187328b278d"
}],
"type": "image",
"id": "7ca56d1893d14a72ae17563d1e25ffe3",
"name": "glance"
},
{
"endpoints": [{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8774/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "internal",
"id": "4c24d0f29a9548558f0c18fafc1e598b"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8774/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "public",
"id": "a40850b7d32a44ba87a6cc816bca22bb"
},
{
"region_id": "RegionOne",
"url": "http://wisteria-controller:8774/v2/5a356ae2c73d47ebbc8e63cb4b943ae2",
"region": "RegionOne",
"interface": "admin",
"id": "b19927c070a240238cd89d3ee237e06e"
}],
"type": "compute",
"id": "f844968302154569930f1a4c7e9f3875",
"name": "nova"
}],
"extras": {
},
"user": {
"domain": {
"id": "default",
"name": "Default"
},
"id": "81167bc6a9e34f4db5b6c3e80bce2ebf",
"name": "admin"
},
"audit_ids": ["mQsdHe72RaOZ0biqUa9nUA"],
"issued_at": "2016-11-10T19:08:18.760933Z"
}
}
|
|