2014-03-12 20:36:29 |
Vinod Mangalpally |
description |
I used MySQL with BIND for these tests. For a POST at /v1/domains with a body as below
{
"id" : "2d1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"ttl" : 12,
"serial" : 100,
"created_at" : "2014-02-24T16:16:42.000000",
"updated_at" : "2014-02-24T16:16:42.000000",
"name" : "example1.com.",
"email" : "admin@example1.com"
}
I see a response of
{
"created_at":"2014-02-24T16:16:42.000000",
"description":null,
"email":"admin@example1.com",
"id":"2d1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"name":"example1.com.",
"serial":1394645589,
"ttl":12,
"updated_at":"2014-02-24T16:16:42.000000"
}
I can specify the serial, created_at, updated_at, id fields in the body. The id, created_at, updated_at fields are updated. The serial is silently ignored
For a POST at /v2/zones with a body as below
{
"zone" : {
"id" : "2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"pool_id" : "2b1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"project_id" : "my_project_id",
"status" : "ERROR",
"ttl" : 12,
"serial" : 100,
"version" : 5,
"created_at" : "2014-02-24T16:16:42.000000",
"updated_at" : "2014-02-24T16:16:42.000000",
"name" : "example2.com.",
"email" : "admin@example2.com"
}
}
the Response is
{
"zone":{
"status":"ACTIVE",
"description":null,
"links":{
"self":"http://192.168.33.8:9001/v2/zones/2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8"
},
"updated_at":null,
"ttl":12,
"serial":1394645291,
"id":"2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"name":"example2.com.",
"created_at":"2014-03-12T17:28:11.958567",
"pool_id":"572ba08c-d929-4c70-8e42-03824bb24ca2",
"version":1,
"project_id":"noauth-project",
"email":"admin@example2.com"
}
}
The id field is updated. pool_id, project_id, status, version, serial, created_at, updated_at can be specified in the body but are ignored. |
I used MySQL with BIND for these tests.
For a POST at /v2/zones with a body as below
{
"zone" : {
"id" : "2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"pool_id" : "2b1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"project_id" : "my_project_id",
"status" : "ERROR",
"ttl" : 12,
"serial" : 100,
"version" : 5,
"created_at" : "2014-02-24T16:16:42.000000",
"updated_at" : "2014-02-24T16:16:42.000000",
"name" : "example2.com.",
"email" : "admin@example2.com"
}
}
the Response is
{
"zone":{
"status":"ACTIVE",
"description":null,
"links":{
"self":"http://192.168.33.8:9001/v2/zones/2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8"
},
"updated_at":null,
"ttl":12,
"serial":1394645291,
"id":"2a1d1d1d-1324-4a80-aa32-1f69a91bf2c8",
"name":"example2.com.",
"created_at":"2014-03-12T17:28:11.958567",
"pool_id":"572ba08c-d929-4c70-8e42-03824bb24ca2",
"version":1,
"project_id":"noauth-project",
"email":"admin@example2.com"
}
}
The id field is updated. pool_id, project_id, status, version, serial, created_at, updated_at can be specified in the body but are ignored. |
|