Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Muestra una lista de todas las credenciales activas de la cuenta de servicio asociada con esta.
. Solo se muestran el ID y el tipo de clave. El servicio de llamadas
la cuenta se debe haber recuperado llamando a Enterprises.GetServiceAccount
y debe haberse establecido como la cuenta de servicio empresarial llamando
Enterprises.SetAccount.
Solicitud
Solicitud HTTP
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
Parámetros
Nombre del parámetro
Valor
Descripción
Parámetros de ruta de acceso
enterpriseId
string
El ID de la empresa.
Autorización
Esta solicitud requiere una autorización con el siguiente alcance:
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eThis method lists active credentials (ID and key type only) for an enterprise's associated service account, but is deprecated and will be inaccessible after September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eTo use this method, the calling service account must be retrieved and set as the enterprise service account using specific API calls.\u003c/p\u003e\n"],["\u003cp\u003eNew integrations should refer to the recommended alternatives provided in the documentation instead of using this deprecated method.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope is required to use this API method.\u003c/p\u003e\n"]]],[],null,["# Serviceaccountkeys: list\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative_4). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nLists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"serviceAccountKey\": [\n serviceaccountkeys Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------|--------|----------------------------------|-------|\n| `serviceAccountKey[]` | `list` | The service account credentials. | |"]]