Open nilscodes opened 5 years ago
@npeuser The operation returns a (CertificateCollection)[https://docs.microsoft.com/en-us/rest/api/appservice/certificates/list#response]... which has a next page link...
The API is paginated. Fluent Java SDK API for listing certificates in turn returns a paged list.
What is the version of the SDK that you are using?
hi @npeuser could you pls provide detail for questions above to help investigation? thanks
I have the following code that tries to list existing app service certificates (3rd party) via the REST API:
Optional<AppServiceCertificate> existingAppCert = azure.appServices().certificates().list().stream().filter(c -> c.thumbprint().equalsIgnoreCase(MY_THUMBPRINT)).findFirst();
This code errors out because the REST API as documented here https://docs.microsoft.com/en-us/rest/api/appservice/certificates/list returns a plain list of certificates, while the list() call is expecting a PagedList<>.
As is, this API is not usable for me via the Java SDK :(
The exception is as follows: