Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca konto usługi i dane logowania. Konto usługi można powiązać z organizacją, wywołując metodę setAccount. Konto usługi jest unikalne dla tej firmy i EMM i zostanie usunięte, jeśli firma zostanie odwiązana. Uwierzytelnianie zawiera dane klucza prywatnego i nie jest przechowywane po stronie serwera.
Metody tej można używać tylko po wywołaniu Enterprise.Enroll lub Enterprises.CompleteSignup i przed Enterprise.SetAccount. W innych przypadkach zwracany jest błąd.
Następne wywołania po pierwszym wygenerują nowy, unikalny zestaw danych logowania i unieważnią wcześniej wygenerowane dane logowania.
Po powiązaniu konta usługi z organizacją możesz nim zarządzać za pomocą zasobu serviceAccountKeys.
.
Żądanie
Żądanie HTTP
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccount
Parametry
Nazwa parametru
Wartość
Opis
Parametry ścieżki
enterpriseId
string
Identyfikator firmy.
Parametry opcjonalne zapytania
keyType
string
Typ danych uwierzytelniających zwracanych z kontem usługi. Wymagane.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-03-26 UTC."],[[["\u003cp\u003eGenerates a service account and credentials that are unique to the enterprise and EMM and can be used for authentication.\u003c/p\u003e\n"],["\u003cp\u003eThe service account can be bound to the enterprise using the \u003ccode\u003esetAccount\u003c/code\u003e call and managed with the \u003ccode\u003eserviceAccountKeys\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eRequires prior enrollment or signup completion and executing this method invalidates previously generated credentials, issuing new ones.\u003c/p\u003e\n"],["\u003cp\u003eOnly specific key types (\u003ccode\u003egoogleCredentials\u003c/code\u003e or \u003ccode\u003epkcs12\u003c/code\u003e) are supported when requesting the service account.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope is necessary for this request.\u003c/p\u003e\n"]]],[],null,[]]