Stay organized with collections
Save and categorize content based on your preferences.
Generates new credentials for the service account associated with this
enterprise. 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.
Only the type of the key should be populated in the resource to be
inserted.
Request
HTTP request
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
Parameters
Parameter name
Value
Description
Path parameters
enterpriseId
string
The ID of the enterprise.
Authorization
This request requires authorization with the following scope:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["This method generates new credentials for the service account linked to an enterprise, requiring prior retrieval and setup of the service account."],["It's crucial to note that this method is deprecated and will be inaccessible after September 30, 2025, with alternative recommendations available for new integrations."],["Authorization is necessary using the `https://www.googleapis.com/auth/androidenterprise` scope."],["The request involves specifying the enterprise ID and the desired key type (either `googleCredentials` or `pkcs12`)."],["A successful response will return a `Serviceaccountkeys` resource containing the generated credentials."]]],[]]