Skip to content

Latest commit

 

History

History
131 lines (102 loc) · 5.22 KB

File metadata and controls

131 lines (102 loc) · 5.22 KB
title List trustedCertificateAuthorities
description List the trusted certificate authorities in a certificateBasedApplicationConfiguration object.
author madansr7
ms.localizationpriority medium
ms.subservice entra-sign-in
doc_type apiPageType
ms.date 05/22/2024

List trustedCertificateAuthorities

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

List the trusted certificate authorities in a certificateBasedApplicationConfiguration object.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-trusted-app-cert-config-apis]

HTTP request

GET /directory/certificateAuthorities/certificateBasedApplicationConfigurations/{certificateBasedApplicationConfigurationId}/trustedCertificateAuthorities

Optional query parameters

This method supports the $select OData query parameter to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of certificateAuthorityAsEntity objects in the response body.

Examples

The following example shows how to get a list of trusted certificate authorities.

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/directory/certificateAuthorities/certificateBasedApplicationConfigurations/0a6a9b97-b84c-406a-a703-14d699d1fbb1/trustedCertificateAuthorities

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#directory/certificateAuthorities/certificateBasedApplicationConfigurations('e47a3693-e84f-48bf-8c54-767c56ad46c1')/trustedCertificateAuthorities",
    "value": [
        {
            "certificate": "MIIIcTCCBlmgA=",
            "id": "3add3691-8b1e-4ecf-83bd-4effceaae3f6",
            "isRootAuthority": false,
            "issuer": "CN=AME Infra CA 05, DC=AME, DC=GBL"
        },
        {
            "certificate": "MIIFVjCCAz6gA=",
            "id": "a572699a-8b9f-42df-a168-5e077078abfd",
            "isRootAuthority": true,
            "issuer": "CN=ameroot, DC=AME, DC=GBL"
        }
    ]
}