pem.addDomainToAccount

This method is supported by Operations starting from version 2.8

This method creates Domain for Account specified. The Domain created has no hosting added, not even DNS Hosting.

The method has the following input parameters:

Name

Type

Short Description

account_id

int

ID of Account.

[domain_id]

int

ID of Domain. This parameter is optional.

domain_name

string

The name of Domain to create.

[force]

boolean

This parameter defines Domain creating mode. There are the following possible values:

  • 0 – Default value. There are the following scenarios:
    • Domain with the same name exists in Operations already. In this case error is returned.
    • Domain with the same name does not exist. In this case method removes all Domain Requests with the same name for Account specified, and creates new Domain.
  • 1 – There are the following scenarios:
    • Domain with the same name exists in Operations under different Account. Method removes from Operations all Domain Requests with the same name, then removes existing Domain, and creates new one.
    • Domain with the same name exists in Operations under current Account. In this case method removes from Operations all Domain Requests with the same name, but Domain stays intact.
    • Domain with the same name does not exist. Method removes from Operations all Domain Requests with the same name, and creates new Domain.

The method has the following output parameters:

Name

Type

Short Description

domain_id

int

ID of Domain.