Proxy deployment date, unable to retrieve the info

Hi Guys,

I have a requirement to pull out the list of all deployed API proxy based on the <CreatedAt> details.
I am able to pull out the list of all proxies available in that given organization using the below:
/organizations/{org_name}/apis
When trying the get the deployment details using below it doesn't give any details on the created date for that specific proxy.
/organizations/{org_name}/apis/{api_name}/deployment
Due to huge list of proxies wanted to avoid manual efforts. Please let me kno

Solved Solved
0 5 200
2 ACCEPTED SOLUTIONS

Hi @kumaramkr - Have you tried adding the 'includeMetaData=true' option to your API call? for example:

 

curl \
  'https://apigee.googleapis.com/v1/organizations/{your-org}/apis?includeMetaData=true&includeRevisions=true&key=[YOUR_API_KEY]' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --compressed

 

 In my results I see 'createdAt' information for each proxy under 'metaData' when I use this option. For example:

{
  "proxies": [
    {
      "metaData": {
        "createdAt": "1613938046960",
        "lastModifiedAt": "1613938046960",
        "subType": "Proxy"
      },
      "name": "security-oauth-v1",
      "apiProxyType": "PROGRAMMABLE"
    }
  ]
}

View solution in original post

Yes, it's all nicely documented here, with try it functionality included 🙂

Here is a link to the relevant section in question: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.apis/list

View solution in original post

5 REPLIES 5

Hi @kumaramkr - Have you tried adding the 'includeMetaData=true' option to your API call? for example:

 

curl \
  'https://apigee.googleapis.com/v1/organizations/{your-org}/apis?includeMetaData=true&includeRevisions=true&key=[YOUR_API_KEY]' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --compressed

 

 In my results I see 'createdAt' information for each proxy under 'metaData' when I use this option. For example:

{
  "proxies": [
    {
      "metaData": {
        "createdAt": "1613938046960",
        "lastModifiedAt": "1613938046960",
        "subType": "Proxy"
      },
      "name": "security-oauth-v1",
      "apiProxyType": "PROGRAMMABLE"
    }
  ]
}

Hello @markjkelly 

These are very interesting queryString options!

I did not find them on the APIGEE X API documentation...
Is there a place where all these eastern eggs are referenced?

Thanks!
Arnaduga

Yes, it's all nicely documented here, with try it functionality included 🙂

Here is a link to the relevant section in question: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.apis/list

Oops, my bad! I was thinking this kind of parameters would apply on every list, not only orgs 🙂

Thanks!

Thanks @markjkelly this worked.