Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
<ph type="x-smartling-placeholder">
Listet alle aktiven Anmeldedaten für das mit diesem
Unternehmen. Nur die ID und der Schlüsseltyp werden zurückgegeben. Der aufrufende Dienst
Konto muss durch Aufrufen von Enterprises.GetServiceAccount abgerufen worden sein
und muss als Enterprise-Dienstkonto festgelegt worden sein. Rufen Sie dazu
Enterprises.SetAccount.
Anfrage
HTTP-Anfrage
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
Parameter
Parametername
Wert
Beschreibung
Pfadparameter
enterpriseId
string
Die ID des Unternehmens.
Autorisierung
Für diese Anfrage ist eine Autorisierung mit folgendem Bereich erforderlich:
[null,null,["Zuletzt aktualisiert: 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. | |"]]