Show / Hide Table of Contents

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. Note: After you create a key, you might need to wait for 60 seconds or more before you perform another operation with the key. If you try to perform an operation with the key immediately after you create the key, and you receive an error, you can retry the request with exponential backoff .

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ServiceAccount>
AndroidEnterpriseBaseServiceRequest<ServiceAccount>
EnterprisesResource.GetServiceAccountRequest
Implements
IClientServiceRequest<ServiceAccount>
IClientServiceRequest
Inherited Members
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.Xgafv
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.AccessToken
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.Alt
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.Callback
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.Fields
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.Key
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.OauthToken
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.PrettyPrint
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.QuotaUser
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.UploadType
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.UploadProtocol
ClientServiceRequest<ServiceAccount>.Execute()
ClientServiceRequest<ServiceAccount>.ExecuteAsStream()
ClientServiceRequest<ServiceAccount>.ExecuteAsync()
ClientServiceRequest<ServiceAccount>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ServiceAccount>.ExecuteAsStreamAsync()
ClientServiceRequest<ServiceAccount>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ServiceAccount>.CreateRequest(bool?)
ClientServiceRequest<ServiceAccount>.GenerateRequestUri()
ClientServiceRequest<ServiceAccount>.GetBody()
ClientServiceRequest<ServiceAccount>.GetDefaultETagAction(string)
ClientServiceRequest<ServiceAccount>.ETagAction
ClientServiceRequest<ServiceAccount>.ModifyRequest
ClientServiceRequest<ServiceAccount>.ValidateParameters
ClientServiceRequest<ServiceAccount>.ApiVersion
ClientServiceRequest<ServiceAccount>.RequestParameters
ClientServiceRequest<ServiceAccount>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<ServiceAccount>.HttpMethod

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
ClientServiceRequest<ServiceAccount>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ServiceAccount>.RestPath

Methods

InitParameters()

Initializes GetServiceAccount parameter list.

Declaration
protected override void InitParameters()
Overrides
AndroidEnterpriseBaseServiceRequest<ServiceAccount>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX