Class EnterprisesResource.GetServiceAccountRequest
Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class EnterprisesResource.GetServiceAccountRequest : AndroidEnterpriseBaseServiceRequest<ServiceAccount>, IClientServiceRequest<ServiceAccount>, IClientServiceRequest
Constructors
GetServiceAccountRequest(IClientService, string)
Constructs a new GetServiceAccount request.
Declaration
public GetServiceAccountRequest(IClientService service, string enterpriseId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | enterpriseId |
Properties
EnterpriseId
The ID of the enterprise.
Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
KeyType
The type of credential to return with the service account. Required.
Declaration
[RequestParameter("keyType", RequestParameterType.Query)]
public virtual EnterprisesResource.GetServiceAccountRequest.KeyTypeEnum? KeyType { get; set; }
Property Value
Type | Description |
---|---|
EnterprisesResource.GetServiceAccountRequest.KeyTypeEnum? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes GetServiceAccount parameter list.
Declaration
protected override void InitParameters()