संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, सेवा खाता और क्रेडेंशियल दिखाता है. setAccount को कॉल करके, सेवा खाते को एंटरप्राइज़ से जोड़ा जा सकता है. यह सेवा खाता, इस एंटरप्राइज़ और ईएमएम के लिए यूनीक होता है. अगर एंटरप्राइज़ को अनबाउंड किया जाता है, तो यह खाता मिटा दिया जाएगा. क्रेडेंशियल में निजी कुंजी का डेटा होता है और इन्हें सर्वर साइड पर सेव नहीं किया जाता.
इस तरीके को सिर्फ़ Enterprises.Enroll या Enterprises.CompleteSignup को कॉल करने के बाद और Enterprises.SetAccount से पहले कॉल किया जा सकता है. ऐसा न करने पर, यह गड़बड़ी दिखाएगा.
पहले कॉल के बाद किए जाने वाले कॉल, क्रेडेंशियल का एक नया और यूनीक सेट जनरेट करेंगे. साथ ही, पहले जनरेट किए गए क्रेडेंशियल अमान्य हो जाएंगे.
सर्विस खाते को एंटरप्राइज़ से बांधने के बाद, उसे serviceAccountKeys संसाधन का इस्तेमाल करके मैनेज किया जा सकता है.
.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccount
पैरामीटर
पैरामीटर का नाम
मान
ब्यौरा
पाथ पैरामीटर
enterpriseId
string
एंटरप्राइज़ का आईडी.
ज़रूरी नहीं क्वेरी पैरामीटर
keyType
string
सेवा खाते के साथ दिखाए जाने वाले क्रेडेंशियल का टाइप. ज़रूरी है.
ये वैल्यू डाली जा सकती हैं:
"googleCredentials"
"pkcs12"
अनुमति देना
इस अनुरोध के लिए, यहां दिए गए स्कोप के साथ अनुमति की ज़रूरत है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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,[]]