$ curl -s -H "x-auth-token: $token" -X POST -H "content-type: application/json" http://localhost/identity/v3/credentials -d '{ "credential": { "blob": {\"access\":\"8cff51dc66594df4a2ae121f796df36c\",\"secret\":\"df8daeaa981b40cea1217fead123bc64\"}", "user_id": "de7d6e49fc434f8394b3a38b83f7c6b2", "project_id": "a5cda204819e4e60a584f8c9b64527ff", "type": "ec2"}}' | jq . { "credential": { "id": "cce2ee9d099fa071da910235df650883db5711ea03599081cd76ed3552821c95", "user_id": "de7d6e49fc434f8394b3a38b83f7c6b2", "project_id": "a5cda204819e4e60a584f8c9b64527ff", "type": "ec2", "blob": "{\"access\": \"8cff51dc66594df4a2ae121f796df36c\", \"secret\": \"df8daeaa981b40cea1217fead123bc64\", \"trust_id\": \"39238aa673884a959ce55b0355e159b3\"}", "links": { "self": "http://192.168.122.96/identity/v3/credentials/cce2ee9d099fa071da910235df650883db5711ea03599081cd76ed3552821c95" } } } $ curl -s -H "content-type: application/json" http://localhost/identity/v3/ec2tokens -d '{ "credentials": { "access": "8cff51dc66594df4a2ae121f796df36c", "host": "localhost", "params": { "Action": "Test", "SignatureMethod": "HmacSHA256", "SignatureVersion": "2", "Timestamp": "2007-01-31T23:59:59Z" }, "path": "/", "secret": "df8daeaa981b40cea1217fead123bc64", "signature": "Fra2UBKKtqy3GQ0mj+JqzR8GTGsbWQW+yN5Nih9ThfI=", "verb": "GET" } }' | jq . { "token": { "methods": [ "ec2credential" ], "user": { "domain": { "id": "default", "name": "Default" }, "id": "de7d6e49fc434f8394b3a38b83f7c6b2", "name": "demo", "password_expires_at": null }, "audit_ids": [ "R6os-hQvSYGMnIUdycCgwA" ], "expires_at": "2020-04-14T21:41:35.000000Z", "issued_at": "2020-04-14T20:41:35.000000Z", "project": { "domain": { "id": "default", "name": "Default" }, "id": "a5cda204819e4e60a584f8c9b64527ff", "name": "demo" }, "is_domain": false, "roles": [ ], "catalog": [ ] } } $ curl -s -H "x-auth-token: $token" -X PATCH -H "content-type: application/json" http://localhost/identity/v3/credentials/cce2ee9d099fa071da910235df650883db5711ea03599081cd76ed3552821c95 -d '{ "credential": { "blob": {\"access\":\"8cff51dc66594df4a2ae121f796df36c\",\"secret\":\"df8daeaa981b40cea1217fead123bc64\", \"trust_id\": null}", "user_id": "de7d6e49fc434f8394b3a38b83f7c6b2", "project_id": "a5cda204819e4e60a584f8c9b64527ff", "type": "ec2"} }' | jq . { "credential": { "id": "cce2ee9d099fa071da910235df650883db5711ea03599081cd76ed3552821c95", "user_id": "de7d6e49fc434f8394b3a38b83f7c6b2", "project_id": "a5cda204819e4e60a584f8c9b64527ff", "type": "ec2", "blob": "{\"access\":\"8cff51dc66594df4a2ae121f796df36c\",\"secret\":\"df8daeaa981b40cea1217fead123bc64\", \"trust_id\": null}", "links": { "self": "http://192.168.122.96/identity/v3/credentials/cce2ee9d099fa071da910235df650883db5711ea03599081cd76ed3552821c95" } } } $ curl -s -H "content-type: application/json" http://localhost/identity/v3/ec2tokens -d '{ "credentials": { "access": "8cff51dc66594df4a2ae121f796df36c", "host": "localhost", "params": { "Action": "Test", "SignatureMethod": "HmacSHA256", "SignatureVersion": "2", "Timestamp": "2007-01-31T23:59:59Z" }, "path": "/", "secret": "df8daeaa981b40cea1217fead123bc64", "signature": "Fra2UBKKtqy3GQ0mj+JqzR8GTGsbWQW+yN5Nih9ThfI=", "verb": "GET" } }' | jq . { "token": { "methods": [ "ec2credential" ], "user": { "domain": { "id": "default", "name": "Default" }, "id": "de7d6e49fc434f8394b3a38b83f7c6b2", "name": "demo", "password_expires_at": null }, "audit_ids": [ "DKwT_mVLTxqP33QqiPcMOw" ], "expires_at": "2020-04-14T21:46:22.000000Z", "issued_at": "2020-04-14T20:46:22.000000Z", "project": { "domain": { "id": "default", "name": "Default" }, "id": "a5cda204819e4e60a584f8c9b64527ff", "name": "demo" }, "is_domain": false, "roles": [ ], "catalog": [ ] } }