Giter Club home page Giter Club logo

Comments (1)

LmV4corbeau avatar LmV4corbeau commented on June 11, 2024

curl call

curl -v -s -X GET -H "X-Auth-Token: "$OS_TOKEN -H "Content-Type: application/json" http://xXX.XXX.XXX.XXX:9696/v2.0/ports\?limit\=500 | jq .        
*   Trying xXX.XXX.XXX.XXX:9696...
* TCP_NODELAY set
* Connected to xXX.XXX.XXX.XXX (xXX.XXX.XXX.XXX) port 9696 (#0)
> GET /v2.0/ports?limit=500 HTTP/1.1
> Host: xXX.XXX.XXX.XXX:9696
> User-Agent: curl/7.68.0
> Accept: */*
> X-Auth-Token: asdf
> Content-Type: application/json
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 4956
< X-Openstack-Request-Id: req-024b786f-de46-4996-8003-c44cfbbeaa0e
< Date: Tue, 03 Mar 2020 15:14:51 GMT
< 
{ [4956 bytes data]
* Connection #0 to host xXX.XXX.XXX.XXX left intact
{
  "ports_links": [
    {
      "href": "http://xXX.XXX.XXX.XXX:9696/v2.0/ports?limit=500&marker=009548c7-f4d0-43b4-9515-cb8cc11afb17&page_reverse=True",
      "rel": "previous"
    }
  ],
  "ports": [
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:41:01Z",
      "device_owner": "network:dhcp",
      "revision_number": 1,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [],
      "id": "009548c7-f4d0-43b4-9515-cb8cc11afb17",
      "security_groups": [],
      "binding:vif_details": {},
      "binding:vif_type": "unbound",
      "mac_address": "fa:16:3e:22:ab:82",
      "project_id": "4604ddec729c47b28f6598e559f3e7fe",
      "status": "DOWN",
      "binding:host_id": "",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "a5931c3c-b1de-4984-bb9a-410acfc754bd",
      "tenant_id": "4604ddec729c47b28f6598e559f3e7fe",
      "created_at": "2020-02-28T14:41:01Z",
      "binding:vnic_type": "normal",
      "device_id": "ovnmeta-a5931c3c-b1de-4984-bb9a-410acfc754bd"
    },
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:41:17Z",
      "device_owner": "network:dhcp",
      "revision_number": 2,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [
        {
          "subnet_id": "ff41f246-a2e0-4a38-aa08-7732df861d2f",
          "ip_address": "10.0.0.2"
        }
      ],
      "id": "0e6fc297-2262-4f83-a640-598040a7b10b",
      "security_groups": [],
      "binding:vif_details": {},
      "binding:vif_type": "unbound",
      "mac_address": "fa:16:3e:5a:bf:f3",
      "project_id": "90cc985aaf774452971ce5ca7f94b770",
      "status": "DOWN",
      "binding:host_id": "",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "0179c49a-b4bf-4ed3-8aff-64fbd93bd62b",
      "tenant_id": "90cc985aaf774452971ce5ca7f94b770",
      "created_at": "2020-02-28T14:41:12Z",
      "binding:vnic_type": "normal",
      "device_id": "ovnmeta-0179c49a-b4bf-4ed3-8aff-64fbd93bd62b"
    },
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:52:37Z",
      "device_owner": "network:router_gateway",
      "revision_number": 4,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [],
      "id": "29c4b0f2-0798-4aeb-8e54-c68eb18e910d",
      "security_groups": [],
      "binding:vif_details": {
        "port_filter": true
      },
      "binding:vif_type": "ovs",
      "mac_address": "fa:16:3e:7c:e4:e9",
      "project_id": "",
      "status": "ACTIVE",
      "binding:host_id": "localhost.localdomain",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "26aa52ea-931f-4ce4-a94f-36ce9576d659",
      "tenant_id": "",
      "created_at": "2020-02-28T14:52:34Z",
      "binding:vnic_type": "normal",
      "device_id": "b4b4dc5a-d3ad-49d1-99b1-31d5858cfddb"
    },
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:44:49Z",
      "device_owner": "network:router_gateway",
      "revision_number": 4,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [
        {
          "subnet_id": "cb8b1d81-0684-498f-8a57-7d1710afd215",
          "ip_address": "172.24.4.125"
        }
      ],
      "id": "458abc9e-4e8b-41ee-8818-51ee21f3821b",
      "security_groups": [],
      "binding:vif_details": {
        "port_filter": true
      },
      "binding:vif_type": "ovs",
      "mac_address": "fa:16:3e:82:9b:b6",
      "project_id": "",
      "status": "ACTIVE",
      "binding:host_id": "localhost.localdomain",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "a5931c3c-b1de-4984-bb9a-410acfc754bd",
      "tenant_id": "",
      "created_at": "2020-02-28T14:41:31Z",
      "binding:vnic_type": "normal",
      "device_id": "8d3ae2bc-0ab5-4d99-9c6e-61d300d7ca4c"
    },
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:41:58Z",
      "device_owner": "network:router_interface",
      "revision_number": 3,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [
        {
          "subnet_id": "ff41f246-a2e0-4a38-aa08-7732df861d2f",
          "ip_address": "10.0.0.1"
        }
      ],
      "id": "6b5c2363-7edd-4dc6-b423-bb000d118bdf",
      "security_groups": [],
      "binding:vif_details": {},
      "binding:vif_type": "unbound",
      "mac_address": "fa:16:3e:15:41:6c",
      "project_id": "90cc985aaf774452971ce5ca7f94b770",
      "status": "ACTIVE",
      "binding:host_id": "",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "0179c49a-b4bf-4ed3-8aff-64fbd93bd62b",
      "tenant_id": "90cc985aaf774452971ce5ca7f94b770",
      "created_at": "2020-02-28T14:41:56Z",
      "binding:vnic_type": "normal",
      "device_id": "8d3ae2bc-0ab5-4d99-9c6e-61d300d7ca4c"
    },
    {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2020-02-28T14:47:45Z",
      "device_owner": "network:dhcp",
      "revision_number": 1,
      "port_security_enabled": false,
      "binding:profile": {},
      "fixed_ips": [],
      "id": "8f2ce8e9-290f-48b3-9b83-f17eefb556cd",
      "security_groups": [],
      "binding:vif_details": {},
      "binding:vif_type": "unbound",
      "mac_address": "fa:16:3e:08:37:29",
      "project_id": "4604ddec729c47b28f6598e559f3e7fe",
      "status": "DOWN",
      "binding:host_id": "",
      "description": "",
      "tags": [],
      "qos_policy_id": null,
      "resource_request": null,
      "name": "",
      "admin_state_up": true,
      "network_id": "26aa52ea-931f-4ce4-a94f-36ce9576d659",
      "tenant_id": "4604ddec729c47b28f6598e559f3e7fe",
      "created_at": "2020-02-28T14:47:45Z",
      "binding:vnic_type": "normal",
      "device_id": "ovnmeta-26aa52ea-931f-4ce4-a94f-36ce9576d659"
    }
  ]
}

from openstack4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.