Nội dung của tệp thông tin xác thực khoá riêng tư, ở định dạng chuỗi. Mã này chỉ được điền sẵn khi ServiceAccountKey được tạo và không được Google lưu trữ.
id
string
Giá trị nhận dạng duy nhất, không rõ ràng cho ServiceAccountKey này. Do máy chủ chỉ định.
kind
string
publicData
string
Dữ liệu về khoá công khai cho tệp thông tin xác thực. Đây là chứng chỉ X.509. Nếu bạn đang sử dụng loại khoá googleCredentials, thì chứng chỉ này giống với chứng chỉ mà bạn có thể truy xuất bằng cách sử dụng URL chứng chỉ X.509 bên trong tệp thông tin xác thực.
Xoá và làm mất hiệu lực của thông tin đăng nhập đã chỉ định cho tài khoản dịch vụ
được liên kết với doanh nghiệp này. Tài khoản dịch vụ gọi phải
truy xuất bằng cách gọi Enterprises.GetServiceAccount và phải được đặt
làm tài khoản dịch vụ doanh nghiệp bằng cách gọi Enterprises.SetAccount.
Tạo thông tin xác thực mới cho tài khoản dịch vụ được liên kết với
doanh nghiệp. Tài khoản dịch vụ gọi phải được truy xuất bằng cách gọi
Enterprises.GetServiceAccount và phải được đặt thành doanh nghiệp
bằng cách gọi Enterprises.SetAccount.
Bạn chỉ nên điền loại khoá trong tài nguyên cần điền
đã chèn.
Liệt kê tất cả thông tin đăng nhập đang hoạt động của tài khoản dịch vụ liên kết với tài khoản này
doanh nghiệp. Chỉ mã nhận dạng và loại khoá được trả về. Dịch vụ gọi
phải được truy xuất bằng cách gọi Enterprises.GetServiceAccount
và phải được đặt làm tài khoản dịch vụ doanh nghiệp bằng cách gọi
Enterprises.SetAccount.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-08 UTC."],[[["\u003cp\u003eThis documentation details service account keys, including their properties (data, ID, kind, publicData, type) and how they are represented as resources.\u003c/p\u003e\n"],["\u003cp\u003eThese methods are deprecated and will be inaccessible after September 30, 2025; new integrations should refer to the recommended alternatives.\u003c/p\u003e\n"],["\u003cp\u003eService account keys are used for authenticating as a service account and can be managed through methods to delete, insert, and list them.\u003c/p\u003e\n"],["\u003cp\u003eBefore using these methods, ensure the calling service account is retrieved via \u003ccode\u003eEnterprises.GetServiceAccount\u003c/code\u003e and set as the enterprise service account using \u003ccode\u003eEnterprises.SetAccount\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Serviceaccountkeys\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new recommendations](/android/work/deprecations#recommended_alternative_6) \n| **This method will no longer be accessible by anyone after September 30, 2025.**\nCredentials that can be used to authenticate as a service account.\n\n\u003cbr /\u003e\n\n```carbon\n{\n \"kind\": \"androidenterprise#serviceAccountKey\",\n \"id\": string,\n \"type\": string,\n \"data\": string,\n \"publicData\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `data` | `string` | The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google. | |\n| `id` | `string` | An opaque, unique identifier for this ServiceAccountKey. Assigned by the server. | |\n| `kind` | `string` | | |\n| `publicData` | `string` | Public key data for the credentials file. This is an X.509 cert. If you are using the `googleCredentials` key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file. | |\n| `type` | `string` | The file format of the generated key data. \u003cbr /\u003e Acceptable values are: - \"`googleCredentials`\" - \"`pkcs12`\" | |\n\nMethods\n-------\n\n[delete](/android/work/play/emm-api/v1/serviceaccountkeys/delete)\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.**\n\n Removes and invalidates the specified credentials for the service account\n associated with this enterprise. The calling service account must have been\n retrieved by calling Enterprises.GetServiceAccount and must have been set\n as the enterprise service account by calling Enterprises.SetAccount.\n\n[insert](/android/work/play/emm-api/v1/serviceaccountkeys/insert)\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.**\n\n Generates new credentials for the service account associated with this\n enterprise. The calling service account must have been retrieved by calling\n Enterprises.GetServiceAccount and must have been set as the enterprise\n service account by calling Enterprises.SetAccount. \n\n\n Only the type of the key should be populated in the resource to be\n inserted.\n\n[list](/android/work/play/emm-api/v1/serviceaccountkeys/list)\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.**\n\n Lists all active credentials for the service account associated with this\n enterprise. Only the ID and key type are returned. The calling service\n account must have been retrieved by calling Enterprises.GetServiceAccount\n and must have been set as the enterprise service account by calling\n Enterprises.SetAccount."]]