From e4d3946e9abb5a80319229a1b7a533be75f44418 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 3 Apr 2018 20:30:56 +0000 Subject: [PATCH] Add timestamp attributes to standard resources Add 'created_at' and 'updated_at' attributes to subnet, subnetpool, ports, router, security group/rule, qos policy, and log if missing. Change-Id: Ib8254e432b26033e679bf75379f1001c5984500b --- api-ref/source/v2/agents.inc | 6 ++--- api-ref/source/v2/floatingips.inc | 6 +++++ api-ref/source/v2/logging.inc | 14 ++++++++++ api-ref/source/v2/parameters.yaml | 24 ----------------- api-ref/source/v2/ports.inc | 26 +++++++++++------- api-ref/source/v2/qos.inc | 14 ++++++++++ api-ref/source/v2/routers.inc | 14 ++++++++++ .../v2/samples/logs/log-create-response.json | 2 ++ .../v2/samples/logs/log-list-response.json | 2 ++ .../v2/samples/logs/log-show-response.json | 2 ++ .../v2/samples/logs/log-update-response.json | 2 ++ .../ports/port-bind-create-response.json | 2 ++ .../ports/port-bind-update-response.json | 2 ++ .../samples/ports/port-update-response.json | 2 ++ .../ports/ports-bind-list-response.json | 8 ++++-- .../ports/ports-bulk-create-response.json | 4 +++ .../v2/samples/ports/ports-list-response.json | 4 +++ .../samples/qos/policies-list-response.json | 2 ++ .../samples/qos/policy-create-response.json | 2 ++ .../v2/samples/qos/policy-show-response.json | 2 ++ .../samples/qos/policy-update-response.json | 2 ++ .../routers/router-create-response.json | 2 ++ .../samples/routers/router-show-response.json | 2 ++ .../routers/router-update-response.json | 2 ++ .../routers/routers-list-response.json | 4 +++ .../security-group-create-response.json | 6 +++++ .../security-group-rule-create-response.json | 2 ++ .../security-group-rule-show-response.json | 2 ++ .../security-group-rules-list-response.json | 8 ++++++ .../security-group-show-response.json | 10 +++++++ .../security-group-update-response.json | 2 ++ .../security-groups-list-response.json | 10 +++++++ .../segments/segment-create-response.json | 2 ++ .../segments/segment-show-response.json | 2 ++ .../segments/segment-update-response.json | 2 ++ .../segments/segments-list-response.json | 4 +++ .../subnets/subnet-update-response.json | 2 ++ .../subnets/subnetpool-create-response.json | 2 ++ .../subnets/subnetpool-update-response.json | 2 ++ .../subnets/subnetpools-list-response.json | 4 +++ api-ref/source/v2/security-group-rules.inc | 12 +++++++++ api-ref/source/v2/security-groups.inc | 14 ++++++++++ api-ref/source/v2/segments.inc | 14 ++++++++++ api-ref/source/v2/subnetpools.inc | 24 ++++++++++------- api-ref/source/v2/subnets.inc | 27 +++++++++++-------- api-ref/source/v2/trunk.inc | 6 +++++ 46 files changed, 250 insertions(+), 59 deletions(-) diff --git a/api-ref/source/v2/agents.inc b/api-ref/source/v2/agents.inc index 8b7108e32..2bec2b194 100644 --- a/api-ref/source/v2/agents.inc +++ b/api-ref/source/v2/agents.inc @@ -41,7 +41,7 @@ Response Parameters - alive: alive - binary: binary - configurations: configurations - - created_at: created_at + - created_at: created_at_resource - description: description - heartbeat_timestamp: heartbeat_timestamp - host: host @@ -86,7 +86,7 @@ Response Parameters - alive: alive - binary: binary - configurations: configurations - - created_at: created_at + - created_at: created_at_resource - description: description - heartbeat_timestamp: heartbeat_timestamp - host: host @@ -138,7 +138,7 @@ Response Parameters - alive: alive - binary: binary - configurations: configurations - - created_at: created_at + - created_at: created_at_resource - description: description - heartbeat_timestamp: heartbeat_timestamp - host: host diff --git a/api-ref/source/v2/floatingips.inc b/api-ref/source/v2/floatingips.inc index fe4300806..1a05c68a9 100644 --- a/api-ref/source/v2/floatingips.inc +++ b/api-ref/source/v2/floatingips.inc @@ -17,6 +17,12 @@ The ``fip-port-details`` extension adds the ``port_details`` attribute to floating IPs. The value of this attribute contains information of the associated port. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + List floating IPs ================= diff --git a/api-ref/source/v2/logging.inc b/api-ref/source/v2/logging.inc index 863fb24b4..104055859 100644 --- a/api-ref/source/v2/logging.inc +++ b/api-ref/source/v2/logging.inc @@ -7,6 +7,12 @@ Log resource The ``logging`` extension lists, creates, shows information for, and updates log resource. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + List logs ========= @@ -54,6 +60,7 @@ Response Parameters - logs: logs - id: log_id - name: name + - created_at: created_at_resource - description: description - tenant_id: project_id - project_id: project_id @@ -62,6 +69,7 @@ Response Parameters - resource_type: resource_log_type - resource_id: resource_log_id - target_id: resource_target_log_id + - updated_at: updated_at_resource - enabled: log_enabled Response Example @@ -122,6 +130,7 @@ Response Parameters - log: log - id: log_id - name: name + - created_at: created_at_resource - description: description - tenant_id: project_id - project_id: project_id @@ -130,6 +139,7 @@ Response Parameters - resource_type: resource_log_type - resource_id: resource_log_id - target_id: resource_target_log_id + - updated_at: updated_at_resource - enabled: log_enabled Request Example @@ -164,6 +174,7 @@ Response Parameters - log: log - id: log_id - name: name + - created_at: created_at_resource - description: description - tenant_id: project_id - project_id: project_id @@ -172,6 +183,7 @@ Response Parameters - resource_type: resource_log_type - resource_id: resource_log_id - target_id: resource_target_log_id + - updated_at: updated_at_resource - enabled: log_enabled Response Example @@ -216,6 +228,7 @@ Response Parameters - log: log - id: log_id - name: name + - created_at: created_at_resource - description: description - tenant_id: project_id - project_id: project_id @@ -224,6 +237,7 @@ Response Parameters - resource_type: resource_log_type - resource_id: resource_log_id - target_id: resource_target_log_id + - updated_at: updated_at_resource - enabled: log_enabled Response Example diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml index 1ca384546..cadd34807 100644 --- a/api-ref/source/v2/parameters.yaml +++ b/api-ref/source/v2/parameters.yaml @@ -1676,12 +1676,6 @@ connection_limit-response: in: body required: true type: integer -created_at: - description: | - Time at which the resource was created. - in: body - required: true - type: string created_at_resource: description: | Time at which the resource has been created (in UTC ISO8601 format). @@ -4996,12 +4990,6 @@ subnet-allocation_pools-request: in: body required: false type: array -subnet-created_at: - description: | - Time at which the subnet has been created. - in: body - required: true - type: string subnet-dns_nameservers: description: | List of dns name servers associated with the subnet. @@ -5178,12 +5166,6 @@ subnet-subnetpool_id-request: in: body required: false type: string -subnet-updated_at: - description: | - Time at which the subnet has been updated. - in: body - required: true - type: string subnet_id: description: | If you specify only a subnet UUID, OpenStack @@ -5320,12 +5302,6 @@ updated: in: body required: true type: string -updated_at: - description: | - Time at which port has been updated. - in: body - required: true - type: string updated_at_resource: description: | Time at which the resource has been updated (in UTC ISO8601 format). diff --git a/api-ref/source/v2/ports.inc b/api-ref/source/v2/ports.inc index edfabff32..2bc59b1ce 100644 --- a/api-ref/source/v2/ports.inc +++ b/api-ref/source/v2/ports.inc @@ -88,6 +88,12 @@ attribute to ports. If a ``port-security`` value is not specified during port creation, a port will inherit the ``port_security_enabled`` from the network its connected to. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + Show port details ================= @@ -126,7 +132,7 @@ Response Parameters - binding:vif_details: binding:vif_details - binding:vif_type: binding:vif_type - binding:vnic_type: binding:vnic_type - - created_at: created_at + - created_at: created_at_resource - data_plane_status: data_plane_status - description: description - device_id: device_id @@ -147,7 +153,7 @@ Response Parameters - security_groups: port-security_groups - status: port-status - tenant_id: project_id - - updated_at: updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -243,7 +249,7 @@ Response Parameters - binding:vif_details: binding:vif_details - binding:vif_type: binding:vif_type - binding:vnic_type: binding:vnic_type - - created_at: created_at + - created_at: created_at_resource - data_plane_status: data_plane_status - description: description - device_id: device_id @@ -264,7 +270,7 @@ Response Parameters - security_groups: port-security_groups - status: port-status - tenant_id: project_id - - updated_at: updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -372,7 +378,7 @@ Response Parameters - binding:vif_details: binding:vif_details - binding:vif_type: binding:vif_type - binding:vnic_type: binding:vnic_type - - created_at: created_at + - created_at: created_at_resource - data_plane_status: data_plane_status - description: description - device_id: device_id @@ -393,7 +399,7 @@ Response Parameters - security_groups: port-security_groups - status: port-status - tenant_id: project_id - - updated_at: updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -472,7 +478,7 @@ Response Parameters - binding:vif_details: binding:vif_details - binding:vif_type: binding:vif_type - binding:vnic_type: binding:vnic_type - - created_at: created_at + - created_at: created_at_resource - data_plane_status: data_plane_status - description: description - device_id: device_id @@ -493,7 +499,7 @@ Response Parameters - security_groups: port-security_groups - status: port-status - tenant_id: project_id - - updated_at: updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -565,7 +571,7 @@ Response Parameters - binding:vif_details: binding:vif_details - binding:vif_type: binding:vif_type - binding:vnic_type: binding:vnic_type - - created_at: created_at + - created_at: created_at_resource - data_plane_status: data_plane_status - description: description - device_id: device_id @@ -586,7 +592,7 @@ Response Parameters - security_groups: port-security_groups - status: port-status - tenant_id: project_id - - updated_at: updated_at + - updated_at: updated_at_resource Response Example ---------------- diff --git a/api-ref/source/v2/qos.inc b/api-ref/source/v2/qos.inc index 5db625e34..0fc4d373d 100644 --- a/api-ref/source/v2/qos.inc +++ b/api-ref/source/v2/qos.inc @@ -90,6 +90,12 @@ QoS policies (qos) Lists, creates, deletes, shows information for, and updates QoS policies. +Resource timestamps extension +============================= + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + QoS default extension ===================== The QoS default extension (``qos-default``) allows a per project @@ -152,6 +158,8 @@ Response Parameters - is_default: qos_is_default - rules: qos-rules - name: name + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -215,6 +223,8 @@ Response Parameters - id: qos_policy_id - is_default: qos_is_default - name: name + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -255,6 +265,8 @@ Response Parameters - id: qos_policy_id - is_default: qos_is_default - name: name + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -309,6 +321,8 @@ Response Parameters - is_default: qos_is_default - rules: qos-rules - name: name + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- diff --git a/api-ref/source/v2/routers.inc b/api-ref/source/v2/routers.inc index 4d48138dc..0b4297659 100644 --- a/api-ref/source/v2/routers.inc +++ b/api-ref/source/v2/routers.inc @@ -36,6 +36,12 @@ The router flavor extension (``l3-flavors``) adds the ``flavor_id`` attribute to routers, allowing requests to be dispatched to different drivers depending on the flavor associated with a given router. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + Router availability zone extension ================================== @@ -120,6 +126,8 @@ Response Parameters - availability_zones: router-availability_zones - service_type_id: router-service_type_id - flavor_id: router-flavor_id + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -202,6 +210,8 @@ Response Parameters - availability_zones: router-availability_zones - service_type_id: router-service_type_id - flavor_id: router-flavor_id + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -261,6 +271,8 @@ Response Parameters - availability_zones: router-availability_zones - service_type_id: router-service_type_id - flavor_id: router-flavor_id + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -333,6 +345,8 @@ Response Parameters - availability_zones: router-availability_zones - service_type_id: router-service_type_id - flavor_id: router-flavor_id + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- diff --git a/api-ref/source/v2/samples/logs/log-create-response.json b/api-ref/source/v2/samples/logs/log-create-response.json index f9ea42456..7d73a23dc 100644 --- a/api-ref/source/v2/samples/logs/log-create-response.json +++ b/api-ref/source/v2/samples/logs/log-create-response.json @@ -5,6 +5,8 @@ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4", "project_id": "92a5a4f4245a4abbafacb7ca73b027b0", "tenant_id": "92a5a4f4245a4abbafacb7ca73b027b0", + "created_at": "2018-04-03T21:03:04Z", + "updated_at": "2018-04-03T21:03:04Z", "enabled": true, "resource_type": "security_group", "resource_id": null, diff --git a/api-ref/source/v2/samples/logs/log-list-response.json b/api-ref/source/v2/samples/logs/log-list-response.json index 5f89c90d8..533510876 100644 --- a/api-ref/source/v2/samples/logs/log-list-response.json +++ b/api-ref/source/v2/samples/logs/log-list-response.json @@ -6,6 +6,8 @@ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4", "project_id": "92a5a4f4245a4abbafacb7ca73b027b0", "tenant_id": "92a5a4f4245a4abbafacb7ca73b027b0", + "created_at": "2018-04-03T21:03:04Z", + "updated_at": "2018-04-03T21:03:04Z", "enabled": true, "revision_number": 1, "resource_type": "security_group", diff --git a/api-ref/source/v2/samples/logs/log-show-response.json b/api-ref/source/v2/samples/logs/log-show-response.json index 0cdc87e8d..ab91caf09 100644 --- a/api-ref/source/v2/samples/logs/log-show-response.json +++ b/api-ref/source/v2/samples/logs/log-show-response.json @@ -5,6 +5,8 @@ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4", "project_id": "8d4c70a21fed4aeba121a1a429ba0d04", "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04", + "created_at": "2018-04-03T21:03:04Z", + "updated_at": "2018-04-03T21:03:04Z", "enabled": true, "revision_number": 1, "resource_type": "security_group", diff --git a/api-ref/source/v2/samples/logs/log-update-response.json b/api-ref/source/v2/samples/logs/log-update-response.json index e02a8b156..2472069e2 100644 --- a/api-ref/source/v2/samples/logs/log-update-response.json +++ b/api-ref/source/v2/samples/logs/log-update-response.json @@ -5,6 +5,8 @@ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4", "project_id": "8d4c70a21fed4aeba121a1a429ba0d04", "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04", + "created_at": "2018-04-03T21:03:04Z", + "updated_at": "2018-04-03T21:03:04Z", "enabled": false, "revision_number": 3, "resource_type": "security_group", diff --git a/api-ref/source/v2/samples/ports/port-bind-create-response.json b/api-ref/source/v2/samples/ports/port-bind-create-response.json index 6a5b4268b..ccc3ee748 100644 --- a/api-ref/source/v2/samples/ports/port-bind-create-response.json +++ b/api-ref/source/v2/samples/ports/port-bind-create-response.json @@ -20,6 +20,7 @@ "binding:vif_details": {}, "binding:vif_type": "unbound", "binding:vnic_type": "other", + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", @@ -56,6 +57,7 @@ ], "status": "DOWN", "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": true } } diff --git a/api-ref/source/v2/samples/ports/port-bind-update-response.json b/api-ref/source/v2/samples/ports/port-bind-update-response.json index 77fe92940..93a544c28 100644 --- a/api-ref/source/v2/samples/ports/port-bind-update-response.json +++ b/api-ref/source/v2/samples/ports/port-bind-update-response.json @@ -7,6 +7,7 @@ "binding:vif_details": {}, "binding:vif_type": "binding_failed", "binding:vnic_type": "normal", + "created_at": "2016-03-08T20:19:41", "data_plane_status": "DOWN", "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", @@ -43,6 +44,7 @@ ], "status": "DOWN", "tenant_id": "522eda8d23124b25bf03fe44f1986b74", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false } } diff --git a/api-ref/source/v2/samples/ports/port-update-response.json b/api-ref/source/v2/samples/ports/port-update-response.json index 7ff4cf2a2..a1eeea0e8 100644 --- a/api-ref/source/v2/samples/ports/port-update-response.json +++ b/api-ref/source/v2/samples/ports/port-update-response.json @@ -7,6 +7,7 @@ "binding:vif_details": {}, "binding:vif_type": "binding_failed", "binding:vnic_type": "normal", + "created_at": "2016-03-08T20:19:41", "data_plane_status": "ACTIVE", "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", @@ -43,6 +44,7 @@ ], "status": "DOWN", "tenant_id": "522eda8d23124b25bf03fe44f1986b74", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false } } diff --git a/api-ref/source/v2/samples/ports/ports-bind-list-response.json b/api-ref/source/v2/samples/ports/ports-bind-list-response.json index 6c9de4ec8..775133b03 100644 --- a/api-ref/source/v2/samples/ports/ports-bind-list-response.json +++ b/api-ref/source/v2/samples/ports/ports-bind-list-response.json @@ -11,6 +11,7 @@ }, "binding:vif_type": "ovs", "binding:vnic_type": "normal", + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", @@ -39,7 +40,8 @@ "revision_number": 1, "security_groups": [], "status": "ACTIVE", - "tenant_id": "" + "tenant_id": "", + "updated_at": "2016-03-08T20:19:41" }, { "admin_state_up": true, @@ -52,6 +54,7 @@ }, "binding:vif_type": "ovs", "binding:vnic_type": "normal", + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", @@ -80,7 +83,8 @@ "revision_number": 2, "security_groups": [], "status": "ACTIVE", - "tenant_id": "d397de8a63f341818f198abb0966f6f3" + "tenant_id": "d397de8a63f341818f198abb0966f6f3", + "updated_at": "2016-03-08T20:19:41" } ] } diff --git a/api-ref/source/v2/samples/ports/ports-bulk-create-response.json b/api-ref/source/v2/samples/ports/ports-bulk-create-response.json index 3946d3b29..dbdab867c 100644 --- a/api-ref/source/v2/samples/ports/ports-bulk-create-response.json +++ b/api-ref/source/v2/samples/ports/ports-bulk-create-response.json @@ -3,6 +3,7 @@ { "admin_state_up": false, "allowed_address_pairs": [], + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "", @@ -34,11 +35,13 @@ ], "status": "DOWN", "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false }, { "admin_state_up": false, "allowed_address_pairs": [], + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "", @@ -71,6 +74,7 @@ ], "status": "DOWN", "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false } ] diff --git a/api-ref/source/v2/samples/ports/ports-list-response.json b/api-ref/source/v2/samples/ports/ports-list-response.json index 8352797d0..887d8d557 100644 --- a/api-ref/source/v2/samples/ports/ports-list-response.json +++ b/api-ref/source/v2/samples/ports/ports-list-response.json @@ -3,6 +3,7 @@ { "admin_state_up": true, "allowed_address_pairs": [], + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", @@ -37,11 +38,13 @@ "security_groups": [], "status": "ACTIVE", "tenant_id": "", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false }, { "admin_state_up": true, "allowed_address_pairs": [], + "created_at": "2016-03-08T20:19:41", "data_plane_status": null, "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", @@ -76,6 +79,7 @@ "security_groups": [], "status": "ACTIVE", "tenant_id": "d397de8a63f341818f198abb0966f6f3", + "updated_at": "2016-03-08T20:19:41", "port_security_enabled": false } ] diff --git a/api-ref/source/v2/samples/qos/policies-list-response.json b/api-ref/source/v2/samples/qos/policies-list-response.json index f3f4578c7..a856cf73d 100644 --- a/api-ref/source/v2/samples/qos/policies-list-response.json +++ b/api-ref/source/v2/samples/qos/policies-list-response.json @@ -8,6 +8,8 @@ "name": "10Mbit", "description": "This policy limits the ports to 10Mbit max.", "revision_number": 3, + "created_at": "2018-04-03T21:26:39Z", + "updated_at": "2018-04-03T21:26:39Z", "shared": false, "rules": [ { diff --git a/api-ref/source/v2/samples/qos/policy-create-response.json b/api-ref/source/v2/samples/qos/policy-create-response.json index 77f81c14e..6d5d15c81 100644 --- a/api-ref/source/v2/samples/qos/policy-create-response.json +++ b/api-ref/source/v2/samples/qos/policy-create-response.json @@ -8,6 +8,8 @@ "project_id": "8d4c70a21fed4aeba121a1a429ba0d04", "revision_number": 1, "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04", + "created_at": "2018-04-03T21:26:39Z", + "updated_at": "2018-04-03T21:26:39Z", "shared": false } } diff --git a/api-ref/source/v2/samples/qos/policy-show-response.json b/api-ref/source/v2/samples/qos/policy-show-response.json index ef1bd60b5..cb4dbfd38 100644 --- a/api-ref/source/v2/samples/qos/policy-show-response.json +++ b/api-ref/source/v2/samples/qos/policy-show-response.json @@ -7,6 +7,8 @@ "name": "10Mbit", "description": "This policy limits the ports to 10Mbit max.", "revision_number": 3, + "created_at": "2018-04-03T21:26:39Z", + "updated_at": "2018-04-03T21:26:39Z", "shared": false, "rules": [ { diff --git a/api-ref/source/v2/samples/qos/policy-update-response.json b/api-ref/source/v2/samples/qos/policy-update-response.json index cd44f8ffa..c8fbb3b86 100644 --- a/api-ref/source/v2/samples/qos/policy-update-response.json +++ b/api-ref/source/v2/samples/qos/policy-update-response.json @@ -6,6 +6,8 @@ "is_default": false, "project_id": "8d4c70a21fed4aeba121a1a429ba0d04", "revision_number": 3, + "created_at": "2018-04-03T21:26:39Z", + "updated_at": "2018-04-03T21:26:39Z", "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04", "shared": false } diff --git a/api-ref/source/v2/samples/routers/router-create-response.json b/api-ref/source/v2/samples/routers/router-create-response.json index ee8a7278a..24b0831df 100644 --- a/api-ref/source/v2/samples/routers/router-create-response.json +++ b/api-ref/source/v2/samples/routers/router-create-response.json @@ -5,6 +5,7 @@ "availability_zones": [ "nova" ], + "created_at": "2018-03-19T19:17:04Z", "description": "", "distributed": false, "external_gateway_info": { @@ -24,6 +25,7 @@ "routes": [], "revision_number": 1, "status": "ACTIVE", + "updated_at": "2018-03-19T19:17:22Z", "project_id": "0bd18306d801447bb457a46252d82d13", "tenant_id": "0bd18306d801447bb457a46252d82d13", "service_type_id": null diff --git a/api-ref/source/v2/samples/routers/router-show-response.json b/api-ref/source/v2/samples/routers/router-show-response.json index dc93bb24d..28f0eff51 100644 --- a/api-ref/source/v2/samples/routers/router-show-response.json +++ b/api-ref/source/v2/samples/routers/router-show-response.json @@ -5,6 +5,7 @@ "availability_zones": [ "nova" ], + "created_at": "2018-03-19T19:17:04Z", "description": "", "distributed": false, "external_gateway_info": { @@ -33,6 +34,7 @@ } ], "status": "ACTIVE", + "updated_at": "2018-03-19T19:17:22Z", "project_id": "0bd18306d801447bb457a46252d82d13", "tenant_id": "0bd18306d801447bb457a46252d82d13", "service_type_id": null diff --git a/api-ref/source/v2/samples/routers/router-update-response.json b/api-ref/source/v2/samples/routers/router-update-response.json index 003791c57..e052259a2 100644 --- a/api-ref/source/v2/samples/routers/router-update-response.json +++ b/api-ref/source/v2/samples/routers/router-update-response.json @@ -5,6 +5,7 @@ "availability_zones": [ "nova" ], + "created_at": "2018-03-19T19:17:04Z", "description": "", "distributed": false, "external_gateway_info": { @@ -29,6 +30,7 @@ } ], "status": "ACTIVE", + "updated_at": "2018-03-19T19:17:22Z", "project_id": "0bd18306d801447bb457a46252d82d13", "tenant_id": "0bd18306d801447bb457a46252d82d13", "service_type_id": null diff --git a/api-ref/source/v2/samples/routers/routers-list-response.json b/api-ref/source/v2/samples/routers/routers-list-response.json index 499f71431..954b3665c 100644 --- a/api-ref/source/v2/samples/routers/routers-list-response.json +++ b/api-ref/source/v2/samples/routers/routers-list-response.json @@ -6,6 +6,7 @@ "availability_zones": [ "nova" ], + "created_at": "2018-03-19T19:17:04Z", "description": "", "distributed": false, "external_gateway_info": { @@ -34,6 +35,7 @@ } ], "status": "ACTIVE", + "updated_at": "2018-03-19T19:17:22Z", "project_id": "0bd18306d801447bb457a46252d82d13", "tenant_id": "0bd18306d801447bb457a46252d82d13", "service_type_id": null @@ -44,6 +46,7 @@ "availability_zones": [ "nova" ], + "created_at": "2018-03-19T19:17:04Z", "description": "", "distributed": false, "external_gateway_info": { @@ -67,6 +70,7 @@ "revision_number": 1, "routes": [], "status": "ACTIVE", + "updated_at": "2018-03-19T19:17:22Z", "project_id": "0bd18306d801447bb457a46252d82d13", "tenant_id": "0bd18306d801447bb457a46252d82d13", "service_type_id": null diff --git a/api-ref/source/v2/samples/security-groups/security-group-create-response.json b/api-ref/source/v2/samples/security-groups/security-group-create-response.json index 70ed9a7ee..0a13f088d 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-create-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-create-response.json @@ -15,6 +15,8 @@ "remote_ip_prefix": null, "security_group_id": "2076db17-a522-4506-91de-c6dd8e837028", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" @@ -30,12 +32,16 @@ "remote_ip_prefix": null, "security_group_id": "2076db17-a522-4506-91de-c6dd8e837028", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" } ], "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550" } diff --git a/api-ref/source/v2/samples/security-groups/security-group-rule-create-response.json b/api-ref/source/v2/samples/security-groups/security-group-rule-create-response.json index 43bc16149..1432f5337 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-rule-create-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-rule-create-response.json @@ -12,6 +12,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" } } diff --git a/api-ref/source/v2/samples/security-groups/security-group-rule-show-response.json b/api-ref/source/v2/samples/security-groups/security-group-rule-show-response.json index 84c3306bf..da5e3a9ad 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-rule-show-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-rule-show-response.json @@ -9,6 +9,8 @@ "remote_group_id": null, "remote_ip_prefix": null, "revision_number": 1, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "security_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550" diff --git a/api-ref/source/v2/samples/security-groups/security-group-rules-list-response.json b/api-ref/source/v2/samples/security-groups/security-group-rules-list-response.json index 6ef2cc327..4e9cc88ac 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-rules-list-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-rules-list-response.json @@ -12,6 +12,8 @@ "security_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" }, @@ -27,6 +29,8 @@ "security_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" }, @@ -42,6 +46,8 @@ "security_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 2, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" }, @@ -57,6 +63,8 @@ "security_group_id": "85cc3048-abc3-43cc-89b3-377341426ac5", "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", "description": "" } diff --git a/api-ref/source/v2/samples/security-groups/security-group-show-response.json b/api-ref/source/v2/samples/security-groups/security-group-show-response.json index bca2d4eae..aedb046f1 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-show-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-show-response.json @@ -17,6 +17,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -32,6 +34,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 2, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -47,6 +51,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -62,10 +68,14 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" } ], "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "revision_number": 4, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550" } diff --git a/api-ref/source/v2/samples/security-groups/security-group-update-response.json b/api-ref/source/v2/samples/security-groups/security-group-update-response.json index 8750ff39a..919c0d353 100644 --- a/api-ref/source/v2/samples/security-groups/security-group-update-response.json +++ b/api-ref/source/v2/samples/security-groups/security-group-update-response.json @@ -4,6 +4,8 @@ "project_id": "a52cdb9cc7854a39a23d3af73a40899e", "revision_number": 4, "tenant_id": "a52cdb9cc7854a39a23d3af73a40899e", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "id": "01fbade5-b664-42f6-83ae-4e214f4263fa", "name": "mysecgroup", "description": "my security group" diff --git a/api-ref/source/v2/samples/security-groups/security-groups-list-response.json b/api-ref/source/v2/samples/security-groups/security-groups-list-response.json index b886f9187..866b03c14 100644 --- a/api-ref/source/v2/samples/security-groups/security-groups-list-response.json +++ b/api-ref/source/v2/samples/security-groups/security-groups-list-response.json @@ -18,6 +18,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -33,6 +35,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 2, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -48,6 +52,8 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" }, { @@ -63,11 +69,15 @@ "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 1, "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "" } ], "project_id": "e4f50856753b4dc6afee5fa6b9b6c550", "revision_number": 8, + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "tenant_id": "e4f50856753b4dc6afee5fa6b9b6c550" } ] diff --git a/api-ref/source/v2/samples/segments/segment-create-response.json b/api-ref/source/v2/samples/segments/segment-create-response.json index 3692bea54..822dcc142 100644 --- a/api-ref/source/v2/samples/segments/segment-create-response.json +++ b/api-ref/source/v2/samples/segments/segment-create-response.json @@ -7,6 +7,8 @@ "physical_network": "segment-1", "revision_number": 1, "id": "57fe85e4-ca2f-4192-b3cd-d5c249d7a21f", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": null } } diff --git a/api-ref/source/v2/samples/segments/segment-show-response.json b/api-ref/source/v2/samples/segments/segment-show-response.json index 3692bea54..822dcc142 100644 --- a/api-ref/source/v2/samples/segments/segment-show-response.json +++ b/api-ref/source/v2/samples/segments/segment-show-response.json @@ -7,6 +7,8 @@ "physical_network": "segment-1", "revision_number": 1, "id": "57fe85e4-ca2f-4192-b3cd-d5c249d7a21f", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": null } } diff --git a/api-ref/source/v2/samples/segments/segment-update-response.json b/api-ref/source/v2/samples/segments/segment-update-response.json index fd8793479..3ce53757a 100644 --- a/api-ref/source/v2/samples/segments/segment-update-response.json +++ b/api-ref/source/v2/samples/segments/segment-update-response.json @@ -7,6 +7,8 @@ "physical_network": "segment-1", "revision_number": 4, "id": "57fe85e4-ca2f-4192-b3cd-d5c249d7a21f", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": "Segment One" } } diff --git a/api-ref/source/v2/samples/segments/segments-list-response.json b/api-ref/source/v2/samples/segments/segments-list-response.json index 432248558..d153950b2 100644 --- a/api-ref/source/v2/samples/segments/segments-list-response.json +++ b/api-ref/source/v2/samples/segments/segments-list-response.json @@ -8,6 +8,8 @@ "physical_network": "segment-1", "revision_number": 1, "id": "57fe85e4-ca2f-4192-b3cd-d5c249d7a21f", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": null }, { @@ -18,6 +20,8 @@ "physical_network": "segment-2", "revision_number": 3, "id": "f1364c3a-4fc1-4206-b2dc-3254bc25cbfc", + "created_at": "2018-03-19T19:16:56Z", + "updated_at": "2018-03-19T19:16:56Z", "description": null } ] diff --git a/api-ref/source/v2/samples/subnets/subnet-update-response.json b/api-ref/source/v2/samples/subnets/subnet-update-response.json index 7af177d5c..69f826254 100644 --- a/api-ref/source/v2/samples/subnets/subnet-update-response.json +++ b/api-ref/source/v2/samples/subnets/subnet-update-response.json @@ -7,6 +7,7 @@ "segment_id": null, "project_id": "26a7980765d0414dbc1fc1f88cdb7e6e", "tenant_id": "26a7980765d0414dbc1fc1f88cdb7e6e", + "created_at": "2016-03-08T20:19:41", "dns_nameservers": [], "service_types": [], "allocation_pools": [ @@ -19,6 +20,7 @@ "ip_version": 4, "gateway_ip": "10.0.0.1", "cidr": "10.0.0.0/24", + "updated_at": "2016-03-08T20:19:41", "id": "08eae331-0402-425a-923c-34f7cfe39c1b", "description": "" } diff --git a/api-ref/source/v2/samples/subnets/subnetpool-create-response.json b/api-ref/source/v2/samples/subnets/subnetpool-create-response.json index cfacc75e3..8c50c2b42 100644 --- a/api-ref/source/v2/samples/subnets/subnetpool-create-response.json +++ b/api-ref/source/v2/samples/subnets/subnetpool-create-response.json @@ -17,6 +17,8 @@ "project_id": "9fadcee8aa7c40cdb2114fff7d569c08", "revision_number": 1, "shared": false, + "created_at": "2016-03-08T20:19:41", + "updated_at": "2016-03-08T20:19:41", "tenant_id": "9fadcee8aa7c40cdb2114fff7d569c08" } } diff --git a/api-ref/source/v2/samples/subnets/subnetpool-update-response.json b/api-ref/source/v2/samples/subnets/subnetpool-update-response.json index 1239174f4..8db1f7078 100644 --- a/api-ref/source/v2/samples/subnets/subnetpool-update-response.json +++ b/api-ref/source/v2/samples/subnets/subnetpool-update-response.json @@ -17,6 +17,8 @@ "id": "03f761e6-eee0-43fc-a921-8acf64c14988", "max_prefixlen": 64, "description": "", + "created_at": "2016-03-08T20:19:41", + "updated_at": "2016-03-08T20:19:41", "revision_number": 2 } } diff --git a/api-ref/source/v2/samples/subnets/subnetpools-list-response.json b/api-ref/source/v2/samples/subnets/subnetpools-list-response.json index 5ffc57ef3..b4b659b38 100644 --- a/api-ref/source/v2/samples/subnets/subnetpools-list-response.json +++ b/api-ref/source/v2/samples/subnets/subnetpools-list-response.json @@ -18,6 +18,8 @@ "ip_version": 6, "shared": false, "description": "", + "created_at": "2016-03-08T20:19:41", + "updated_at": "2016-03-08T20:19:41", "revision_number": 2 }, { @@ -38,6 +40,8 @@ "ip_version": 4, "shared": false, "description": "", + "created_at": "2016-03-08T20:19:41", + "updated_at": "2016-03-08T20:19:41", "revision_number": 2 } ] diff --git a/api-ref/source/v2/security-group-rules.inc b/api-ref/source/v2/security-group-rules.inc index 891744549..e37109991 100644 --- a/api-ref/source/v2/security-group-rules.inc +++ b/api-ref/source/v2/security-group-rules.inc @@ -9,6 +9,12 @@ Security group rules (security-group-rules) Lists, creates, shows information for, and deletes security group rules. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + List security group rules ========================= @@ -65,6 +71,8 @@ Response Parameters - project_id: project_id - port_range_min: port_range_min - remote_ip_prefix: remote_ip_prefix + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - id: security_group_rule-id - description: description @@ -124,6 +132,8 @@ Response Parameters - project_id: project_id - port_range_min: port_range_min - remote_ip_prefix: remote_ip_prefix + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - id: security_group_rule-id - description: description @@ -173,6 +183,8 @@ Response Parameters - project_id: project_id - port_range_min: port_range_min - remote_ip_prefix: remote_ip_prefix + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - id: security_group_rule-id - description: description diff --git a/api-ref/source/v2/security-groups.inc b/api-ref/source/v2/security-groups.inc index 8fb8b0aca..c6f08d82c 100644 --- a/api-ref/source/v2/security-groups.inc +++ b/api-ref/source/v2/security-groups.inc @@ -7,6 +7,12 @@ Security groups (security-groups) Lists, creates, shows information for, updates, and deletes security groups. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + List security groups ==================== @@ -55,6 +61,8 @@ Response Parameters - id: security_group-id - tenant_id: project_id - project_id: project_id + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - name: name - description: description @@ -106,6 +114,8 @@ Response Parameters - id: security_group-id - tenant_id: project_id - project_id: project_id + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - name: name - description: description @@ -154,6 +164,8 @@ Response Parameters - id: security_group-id - tenant_id: project_id - project_id: project_id + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - name: name - description: description @@ -201,6 +213,8 @@ Response Parameters - id: security_group-id - tenant_id: project_id - project_id: project_id + - created_at: created_at_resource + - updated_at: updated_at_resource - revision_number: revision_number - name: name - description: description diff --git a/api-ref/source/v2/segments.inc b/api-ref/source/v2/segments.inc index 0e928f694..f7e8c8b06 100644 --- a/api-ref/source/v2/segments.inc +++ b/api-ref/source/v2/segments.inc @@ -7,6 +7,12 @@ Segments Lists, shows details for, creates, updates, and deletes segments. The segments API is admin-only. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + Show segment details ==================== @@ -44,6 +50,8 @@ Response Parameters - segmentation_id: provider:segmentation_id - name: name - description: description + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -90,6 +98,8 @@ Response Parameters - segmentation_id: provider:segmentation_id - name: name - description: description + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -166,6 +176,8 @@ Response Parameters - segmentation_id: provider:segmentation_id - name: name - description: description + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- @@ -215,6 +227,8 @@ Response Parameters - segmentation_id: provider:segmentation_id - name: name - description: description + - created_at: created_at_resource + - updated_at: updated_at_resource Response Example ---------------- diff --git a/api-ref/source/v2/subnetpools.inc b/api-ref/source/v2/subnetpools.inc index 93cc05f7a..f4c2de208 100644 --- a/api-ref/source/v2/subnetpools.inc +++ b/api-ref/source/v2/subnetpools.inc @@ -14,6 +14,12 @@ The ``address-scope`` extension adds the ``address_scope_id`` attribute to subnet pools. ``address_scope_id`` is the ID of the address scope that the subnet pool belongs to. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + Show subnet pool ================ @@ -49,8 +55,8 @@ Response Parameters - default_quota: default_quota - tenant_id: project_id - project_id: project_id - - created_at: created_at - - updated_at: updated_at + - created_at: created_at_resource + - updated_at: updated_at_resource - prefixes: prefixes - min_prefixlen: min_prefixlen - address_scope_id: address_scope_id @@ -114,8 +120,8 @@ Response Parameters - default_quota: default_quota - tenant_id: project_id - project_id: project_id - - created_at: created_at - - updated_at: updated_at + - created_at: created_at_resource + - updated_at: updated_at_resource - prefixes: prefixes - min_prefixlen: min_prefixlen - address_scope_id: address_scope_id @@ -217,8 +223,8 @@ Response Parameters - default_quota: default_quota - tenant_id: project_id - project_id: project_id - - created_at: created_at - - updated_at: updated_at + - created_at: created_at_resource + - updated_at: updated_at_resource - prefixes: prefixes - min_prefixlen: min_prefixlen - address_scope_id: address_scope_id @@ -282,8 +288,8 @@ Response Parameters - default_quota: default_quota - tenant_id: project_id - project_id: project_id - - created_at: created_at - - updated_at: updated_at + - created_at: created_at_resource + - updated_at: updated_at_resource - prefixes: prefixes - min_prefixlen: min_prefixlen - address_scope_id: address_scope_id @@ -299,4 +305,4 @@ Response Example ---------------- .. literalinclude:: samples/subnets/subnetpool-create-response.json - :language: javascript \ No newline at end of file + :language: javascript diff --git a/api-ref/source/v2/subnets.inc b/api-ref/source/v2/subnets.inc index 15b95193f..3f5451f5c 100644 --- a/api-ref/source/v2/subnets.inc +++ b/api-ref/source/v2/subnets.inc @@ -16,13 +16,18 @@ IP version). Then users can specify the ``use_default_subnetpool`` attribute when creating a subnet, instead of having to specify the ``subnetpool_id`` attribute referencing the default subnetpool. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + Subnet allocation extension =========================== Subnet allocation extension (``subnet_allocation``) enables allocation of subnets from a subnet pool. - Subnet service types extension ============================== @@ -102,7 +107,7 @@ Response Parameters - ip_version: subnet-ip_version - gateway_ip: subnet-gateway_ip - cidr: cidr - - created_at: subnet-created_at + - created_at: created_at_resource - description: description - ipv6_address_mode: subnet-ipv6_address_mode - ipv6_ra_mode: subnet-ipv6_ra_mode @@ -110,7 +115,7 @@ Response Parameters - segment_id: subnet-segment_id - service_types: subnet-service_types - subnetpool_id: subnet-subnetpool_id - - updated_at: subnet-updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -215,7 +220,7 @@ Response Parameters - ip_version: subnet-ip_version - gateway_ip: subnet-gateway_ip - cidr: cidr - - created_at: subnet-created_at + - created_at: created_at_resource - description: description - ipv6_address_mode: subnet-ipv6_address_mode - ipv6_ra_mode: subnet-ipv6_ra_mode @@ -223,7 +228,7 @@ Response Parameters - service_types: subnet-service_types - subnetpool_id: subnet-subnetpool_id - segment_id: subnet-segment_id - - updated_at: subnet-updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -295,7 +300,7 @@ Response Parameters - ip_version: subnet-ip_version - gateway_ip: subnet-gateway_ip - cidr: cidr - - created_at: subnet-created_at + - created_at: created_at_resource - description: description - ipv6_address_mode: subnet-ipv6_address_mode - ipv6_ra_mode: subnet-ipv6_ra_mode @@ -303,7 +308,7 @@ Response Parameters - segment_id: subnet-segment_id - service_types: subnet-service_types - subnetpool_id: subnet-subnetpool_id - - updated_at: subnet-updated_at + - updated_at: updated_at_resource Response Example ---------------- @@ -340,7 +345,7 @@ Response Parameters - id: subnet-id-body - tenant_id: project_id - project_id: project_id - - created_at: subnet-created_at + - created_at: created_at_resource - name: subnet-name - enable_dhcp: subnet-enable_dhcp - network_id: subnet-network_id @@ -350,7 +355,7 @@ Response Parameters - ip_version: subnet-ip_version - gateway_ip: subnet-gateway_ip - cidr: cidr - - updated_at: subnet-updated_at + - updated_at: updated_at_resource - description: description - ipv6_address_mode: subnet-ipv6_address_mode - ipv6_ra_mode: subnet-ipv6_ra_mode @@ -419,7 +424,7 @@ Response Parameters - ip_version: subnet-ip_version - gateway_ip: subnet-gateway_ip - cidr: cidr - - created_at: subnet-created_at + - created_at: created_at_resource - description: description - ipv6_address_mode: subnet-ipv6_address_mode - ipv6_ra_mode: subnet-ipv6_ra_mode @@ -427,7 +432,7 @@ Response Parameters - segment_id: subnet-segment_id - service_types: subnet-service_types - subnetpool_id: subnet-subnetpool_id - - updated_at: subnet-updated_at + - updated_at: updated_at_resource Response Example ---------------- diff --git a/api-ref/source/v2/trunk.inc b/api-ref/source/v2/trunk.inc index b388e08d8..68c605462 100644 --- a/api-ref/source/v2/trunk.inc +++ b/api-ref/source/v2/trunk.inc @@ -21,6 +21,12 @@ In more details, the extension introduces the following resources: - **sub_port**. An association to a neutron logical port with attributes segmentation_id and segmentation_type. +Resource timestamps +=================== + +The ``standard-attr-timestamp`` extension adds the ``created_at`` and +``updated_at`` attributes to all resources that have standard attributes. + List trunks ===========