Updated guides and samples
Change-Id: I122e389fb4205fa430bcc01ecc19f61e311fe2da
This commit is contained in:
parent
88c05ef0f5
commit
acd108bef4
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
{
|
||||
"user": {
|
||||
"groups": {
|
||||
"roles": {
|
||||
"values": [
|
||||
{
|
||||
"tenantId": "1234",
|
||||
@ -8,7 +8,8 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "jqsmith",
|
||||
"id": "u1000",
|
||||
"username": "jqsmith",
|
||||
"tenantId": "1234",
|
||||
"email": "john.smith@example.org",
|
||||
"enabled": true,
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<user xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
enabled="true" email="john.smith@example.org"
|
||||
tenantId="1234" id="jqsmith">
|
||||
<groups>
|
||||
<group tenantId="1234" id="Admin"/>
|
||||
</groups>
|
||||
tenantId="1234" id="u1000" username="jqsmith">
|
||||
<roles>
|
||||
<role tenantId="1234" id="Admin"/>
|
||||
</roles>
|
||||
<metadata
|
||||
xmlns="http://docs.rackspacecloud.com/identity/api/ext/meta/v2.0">
|
||||
<meta key="MetaKey1">MetaValue1</meta>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"user": {
|
||||
"groups": {
|
||||
"roles": {
|
||||
"values": [
|
||||
{
|
||||
"tenantId": "1234",
|
||||
@ -8,18 +8,17 @@
|
||||
}, {
|
||||
"tenantId": "1234",
|
||||
"id": "DBUser"
|
||||
}, {
|
||||
"id": "Super"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "next",
|
||||
"href": "http://identity.api.openstack.org/v2.0/tenants/1234/users/jqsmith/groups?marker=Super"
|
||||
"href": "http://identity.api.openstack.org/v2.0/tenants/1234/users/u1000/roles?marker=Super"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "jqsmith",
|
||||
"id": "u1000",
|
||||
"username": "jqsmith",
|
||||
"tenantId": "1234",
|
||||
"email": "john.smith@example.org",
|
||||
"enabled": true
|
||||
|
@ -3,12 +3,11 @@
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
enabled="true" email="john.smith@example.org"
|
||||
tenantId="1234" id="jqsmith">
|
||||
<groups>
|
||||
<group tenantId="1234" id="Admin"/>
|
||||
<group tenantId="1234" id="DBUser"/>
|
||||
<group id="Super"/>
|
||||
<roles>
|
||||
<role tenantId="1234" id="Admin"/>
|
||||
<role tenantId="1234" id="DBUser"/>
|
||||
<atom:link
|
||||
rel="next"
|
||||
href="http://identity.api.openstack.org/v2.0/tenants/1234/users/jqsmith/groups?marker=Super"/>
|
||||
</groups>
|
||||
href="http://identity.api.openstack.org/v2.0/tenants/1234/users/u1000/groups?marker=Super"/>
|
||||
</roles>
|
||||
</user>
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"service": {
|
||||
"id": "nova",
|
||||
"type": "compute",
|
||||
"description": "A description ..."
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<service xmlns="http://docs.openstack.org/identity/api/v2.0" id="nova"
|
||||
description="All Access" />
|
||||
type="compute" description="All Access" />
|
||||
|
@ -2,10 +2,12 @@
|
||||
"services": [
|
||||
{
|
||||
"id": "nova",
|
||||
"description": "All access"
|
||||
"type": "compute",
|
||||
"description": "Computers in the Cloud"
|
||||
}, {
|
||||
"id": "glance",
|
||||
"description": "Guest Access"
|
||||
"type": "image-service",
|
||||
"description": "Server Images"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<services xmlns="http://docs.openstack.org/identity/api/v2.0">
|
||||
<service id="Nova" description="Openstack Service" />
|
||||
<service id="Glance" description="Openstack Service" />
|
||||
<service id="Nova" type="compute" description="Openstack Service" />
|
||||
<service id="Glance" type="image-service" description="Openstack Service" />
|
||||
</services>
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"tenant": {
|
||||
"id": "1234",
|
||||
"name": "ACME corp",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenant xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
enabled="true" id="1234">
|
||||
enabled="true" id="1234" name="ACME Corp">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
|
@ -3,6 +3,7 @@
|
||||
"values": [
|
||||
{
|
||||
"id": "1234",
|
||||
"name": "ACME corp",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<tenant enabled="true" id="1234">
|
||||
<tenant enabled="true" id="1234" name="ACME Corp">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
<atom:link
|
||||
|
@ -3,6 +3,7 @@
|
||||
"values": [
|
||||
{
|
||||
"id": "3645",
|
||||
"name": "Iron Works",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<tenant enabled="true" id="3645">
|
||||
<tenant enabled="true" id="3645" name="Iron Works">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
<atom:link
|
||||
|
@ -3,6 +3,7 @@
|
||||
"values": [
|
||||
{
|
||||
"id": "9999",
|
||||
"name": "Bigz",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<tenant enabled="true" id="9999">
|
||||
<tenant enabled="true" id="9999" name="Bigz">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
<atom:link
|
||||
|
@ -3,10 +3,12 @@
|
||||
"values": [
|
||||
{
|
||||
"id": "1234",
|
||||
"name": "ACME Corp",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}, {
|
||||
"id": "3456",
|
||||
"name": "Iron Works",
|
||||
"description": "A description ...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -5,10 +5,10 @@ Date: Sun, 1 Jan 2011 9:00:00 GMT
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenants xmlns="http://docs.openstack.org/identity/api/v2.0">
|
||||
<tenant enabled="true" id="1234">
|
||||
<tenant enabled="true" id="1234" name="ACME Corp">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
<tenant enabled="true" id="3645">
|
||||
<tenant enabled="true" id="3645" name="Iron Works">
|
||||
<description>A description...</description>
|
||||
</tenant>
|
||||
</tenants>
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"tenant": {
|
||||
"id": "1234",
|
||||
"name": "ACME Corp",
|
||||
"description": "A NEW description...",
|
||||
"enabled": true
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<tenant xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
enabled="true" id="1234">
|
||||
enabled="true" id="1234" name="ACME Corp">
|
||||
<description>A NEW description...</description>
|
||||
</tenant>
|
||||
|
8
keystone/content/common/samples/user.json
Normal file
8
keystone/content/common/samples/user.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"user": {
|
||||
"id": "jqsmith",
|
||||
"tenantId": "1234",
|
||||
"email": "john.smith@example.org",
|
||||
"enabled": true
|
||||
}
|
||||
}
|
5
keystone/content/common/samples/user.xml
Normal file
5
keystone/content/common/samples/user.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<user xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
enabled="true" email="john.smith@example.org"
|
||||
tenantId="1234" id="jqsmith">
|
||||
</user>
|
@ -9,15 +9,12 @@
|
||||
"username": "jqsmith",
|
||||
"roles": [
|
||||
{
|
||||
"roleId": "Admin",
|
||||
"id": 1,
|
||||
"id": "Admin",
|
||||
"tenantId": "one"
|
||||
}, {
|
||||
"roleId": "Admin",
|
||||
"id": 1
|
||||
"id": "compute:cloud_admin"
|
||||
}
|
||||
],
|
||||
"defaultTenantId": "1234"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,9 +6,9 @@
|
||||
<user username="jqsmith">
|
||||
<roles xmlns="http://docs.openstack.org/identity/api/v2.0">
|
||||
<role xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
id="4" roleId="Admin" tenantId="1234"/>
|
||||
id="Admin" tenantId="1234"/>
|
||||
<role xmlns="http://docs.openstack.org/identity/api/v2.0"
|
||||
id="4" roleId="Admin"/>
|
||||
id="Admin"/>
|
||||
</roles>
|
||||
</user>
|
||||
</auth>
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user