Email Registrations - Register Email

Registers the tenant and email combination for verification.
Register an email for the current tenant

POST https://management.azure.com/providers/Microsoft.DataShare/locations/{location}/registerEmail?api-version=2021-08-01

URI Parameters

Name In Required Type Description
location
path True

string

Location of the registration

api-version
query True

string

The api version to use.

Responses

Name Type Description
200 OK

EmailRegistration

Success

Other Status Codes

DataShareError

An error response received from the Microsoft.DataShare resource provider.

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

EmailRegistrations_RegisterEmail

Sample Request

POST https://management.azure.com/providers/Microsoft.DataShare/locations/East US 2/registerEmail?api-version=2021-08-01

Sample Response

Date: Wed, 13 Sep 2021 18:04:32 GMT
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-tenant-reads: 14999
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
{
  "tenantId": "9f532315-b048-4374-8de1-14734d9b7f77",
  "email": "receiver@microsoft.com",
  "registrationStatus": "ActivationPending",
  "activationCode": null,
  "activationExpirationDate": "2022-08-12T16:44:53.688049Z"
}

Definitions

Name Description
DataShareError

The data share error model.

DataShareErrorInfo

The data share error body model.

EmailRegistration

Dto for tenant domain registration

registrationStatus

Registration status

DataShareError

The data share error model.

Name Type Description
error

DataShareErrorInfo

The data share error body

DataShareErrorInfo

The data share error body model.

Name Type Description
code

string

Code of the error

details

DataShareErrorInfo[]

Nested details of the error model

message

string

Message of the error

target

string

Target of the error

EmailRegistration

Dto for tenant domain registration

Name Type Description
activationCode

string

Activation code for the registration

activationExpirationDate

string

Date of the activation expiration

email

string

The email to register

registrationStatus

registrationStatus

Registration status

tenantId

string

The tenant to register

registrationStatus

Registration status

Name Type Description
Activated

string

ActivationAttemptsExhausted

string

ActivationPending

string