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! Go to Solution.
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"
}
]
}
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
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.