title: I need to get information from the command oc get quotas in Openshift
body: <p>I need to extract some information from the openshift, i am using jsonpath to do it and somenthings i already find how to do. But there are some information that i can't get from the command oc get quota -n (project name) -o json.</p>
  
  <pre><code>**{
      "apiVersion": "v1",
      "items": [
          {
              "apiVersion": "v1",
              "kind": "ResourceQuota",
              "metadata": {
                  "creationTimestamp": "2019-01-14T20:15:01Z",
                  "name": "",
                  "namespace": "",
                  "resourceVersion": "184222288",
                  "selfLink": "",
                  "uid": ""
              },
              "spec": {
                  "hard": {
                      "limits.cpu": "8",
                      "limits.memory": "32Gi",
                      "requests.cpu": "8",
                      "requests.memory": "32Gi"
                  }
              },
              "status": {
                  "hard": {
                      "limits.cpu": "8",
                      "limits.memory": "32Gi",
                      "requests.cpu": "8",
                      "requests.memory": "32Gi"
                  },
                  "used": {
                      "limits.cpu": "4500m",
                      "limits.memory": "14848Mi",
                      "requests.cpu": "4400m",
                      "requests.memory": "14124Mi"
                  }
              }
          }
      ],
      "kind": "List",
      "metadata": {
          "resourceVersion": "",
          "selfLink": ""
      }
  }
  
  I want the information inside spec
  "spec": {
                  "hard": {
                      "limits.cpu": "8",
                      "limits.memory": "32Gi",
                      "requests.cpu": "8",
                      "requests.memory": "32Gi"
                  }**
  </code></pre>
  
  <p>I tried in a lot ways to get this information but none was suceeded
  oc get quota -n (project name) -o jsonpath='{range .items[<em>]}{"\n"}{.spec.hard.limits.cpu}'
  oc get quota -n (project name) -o jsonpath='{range .items[</em>]}{"\n"}{.spec.hard[limits.cpu]}'
  oc get quota -n (project name) -o jsonpath='{range .items[*]}{"\n"}{.spec.hard."limits.cpu"}'</p>
  
  <p>Using the scape "\" i get some information but there some informartion that didn t return.
  Command:</p>
  
  <p>oc get quota -o jsonpath='{range .items[*]}{"\n"}{.metadata.namespace}{";"}{.status.hard.limits.cpu}{";"}{.spec.hard.limits.memory}{";"}{.status.used.limits.cpu}{";"}{.spec.used.limits.memory}{";"}{.spec.used.requests.cpu}{";"}{.spec.used.requests.memory}{end}' --all-namespaces</p>
  
  <p>return:</p>
  
  <pre><code>digitaldev;16;32Gi;5800m;;;
  digitaldev;;;;;;
  fastdatadev;8;64Gi;0;;;
  fastdatadev;;;;;;
  </code></pre>