How can we retrieve API(proxy) list with respect to policies or properties in Apigee hybrid?

 
0 5 3,496
5 REPLIES 5

mor txt pls

Requirement is to get list of api's in apigee hybrid which are maintaining mutual SSL authentication between apigee and target servers

below is the ssl tags we add on target flow for ssl protected api's

<SSLInfo>
<Enabled>true</Enabled>
<Protocols>
<Protocol>TLSv1.2</Protocol>
</Protocols>
<ClientAuthEnabled>true</ClientAuthEnabled>
<IgnoreValidationErrors>false</IgnoreValidationErrors>
<KeyStore></KeyStore>
<KeyAlias></KeyAlias>
<TrustStore></TrustStore>
</SSLInfo>

Former Community Member
Not applicable

There is no API for this. You'd have to scan every proxy bundle. If the proxies use Target Servers, then you'd have to look at that also.

Can we atleast get list of apis with respect to policies?

Not sure how Hybrid works or X, but for OPDK there is an API for getting every data level on proxy you need: 

https://apidocs.apigee.com/docs/api-proxies/1/routes/organizations/%7Borg_name%7D/apis/%7Bapi_name%7...

 

You have to get to revision you want on your API, and then go little further: 

 

 

.../apis/aaa/revisions/1/targets/default

 

 

Then, you will get the block you need 

 

 

 

{
    "connection": {
        "connectionType": "httpConnection",
        "sSLInfo": {
            "ciphers": [],
            "clientAuthEnabled": "false",
            "enabled": "true",
            "ignoreValidationErrors": false,
            "protocols": [],
            "trustStore": "ref://trust"
        },
        "uRL": "https://mocktarget.apigee.net"
    },
    "connectionType": "httpConnection",
    "description": "",
    "faultRules": [],
    "flows": [],
    "name": "default",
    "postFlow": {
        "name": "PostFlow",
        "request": {
            "children": []
        },
        "response": {
            "children": []
        }
    },
    "preFlow": {
        "name": "PreFlow",
        "request": {
            "children": []
        },
        "response": {
            "children": []
        }
    },
    "type": "Target"
}

 

 

@dchiesa1 - Dino, maybe you can check on Hybrid if this also works, don't have any Hybrid env atm...