Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee api proxy subtype null

I currently writing a script to count all proxies we have in prod.

To do this I currently send a request to https://api.enterprise.apigee.com/v1/organizations/{org_name}/environments/{env_name}/deployments

and then for each name I make a request to https://api.enterprise.apigee.com/v1/organizations/{org_name}/apis/{name} to check if it is a proxy or a shared flow. I do this by checking the subType in the response. However on some of them the subType is set to null.

{
    "metaData": {
        "createdAt": 1553585811540,
        "createdBy": "example@example.com",
        "lastModifiedAt": 1553585811540,
        "lastModifiedBy": "example@example.com",
        "subType": "null"
    },
    "name": "Party_Management",
    "revision": [
        "1"
    ]
}
0 2 211
2 REPLIES 2
Top Solution Authors