Updated guides and samples

Change-Id: I122e389fb4205fa430bcc01ecc19f61e311fe2da
This commit is contained in:
Ziad Sawalha 2011-08-21 12:08:48 -05:00
parent 88c05ef0f5
commit acd108bef4
28 changed files with 56 additions and 37 deletions

View File

@ -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,

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -1,6 +1,7 @@
{
"service": {
"id": "nova",
"type": "compute",
"description": "A description ..."
}
}

View File

@ -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" />

View File

@ -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"
}
]
}

View File

@ -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>

View File

@ -1,6 +1,7 @@
{
"tenant": {
"id": "1234",
"name": "ACME corp",
"description": "A description ...",
"enabled": true
}

View File

@ -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>

View File

@ -3,6 +3,7 @@
"values": [
{
"id": "1234",
"name": "ACME corp",
"description": "A description ...",
"enabled": true
}

View File

@ -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

View File

@ -3,6 +3,7 @@
"values": [
{
"id": "3645",
"name": "Iron Works",
"description": "A description ...",
"enabled": true
}

View File

@ -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

View File

@ -3,6 +3,7 @@
"values": [
{
"id": "9999",
"name": "Bigz",
"description": "A description ...",
"enabled": true
}

View File

@ -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

View File

@ -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
}

View File

@ -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>

View File

@ -1,6 +1,7 @@
{
"tenant": {
"id": "1234",
"name": "ACME Corp",
"description": "A NEW description...",
"enabled": true
}

View File

@ -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>

View File

@ -0,0 +1,8 @@
{
"user": {
"id": "jqsmith",
"tenantId": "1234",
"email": "john.smith@example.org",
"enabled": true
}
}

View 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>

View File

@ -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"
]
}
}
}

View File

@ -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>