Enrollment Accounts - Get

Gets a enrollment account by name.

GET https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/{name}?api-version=2018-03-01-preview

URI Parameters

Name In Required Type Description
name
path True

string

Enrollment Account name.

api-version
query True

string

Version of the API to be used with the client request. The current version is 2018-03-01-preview.

Responses

Name Type Description
200 OK

EnrollmentAccountSummary

OK. The request has succeeded.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

EnrollmentAccountsGet

Sample Request

GET https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556?api-version=2018-03-01-preview

Sample Response

{
  "id": "/providers/Microsoft.Billing/enrollmentAccounts/e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556",
  "name": "e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556",
  "type": "Microsoft.Billing/enrollmentAccounts",
  "properties": {
    "principalName": "kathy@contoso.com"
  }
}

Definitions

Name Description
EnrollmentAccountSummary

An enrollment account resource.

ErrorDetails

The details of the error.

ErrorResponse

Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

ErrorSubDetails

EnrollmentAccountSummary

An enrollment account resource.

Name Type Description
id

string

Resource Id.

name

string

Resource name.

properties.principalName

string

The account owner's principal name.

type

string

Resource type.

ErrorDetails

The details of the error.

Name Type Description
code

string

Error code.

details

ErrorSubDetails[]

The sub details of the error.

message

string

Error message indicating why the operation failed.

target

string

The target of the particular error.

ErrorResponse

Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

Name Type Description
error

ErrorDetails

The details of the error.

ErrorSubDetails

Name Type Description
code

string

Error code.

message

string

Error message indicating why the operation failed.

target

string

The target of the particular error.