pem.addDNSHosting

This method is supported by Operations starting from version 2.6.4

This method adds DNS Hosting on the specified Domain.

The method has the following input parameters:

Name

Type

Short Description

domain_id

int

The ID of Domain to add DNS Hosting on.

[subscription_id]

int

The ID of Subscription which contains the "DNS Hosting" Resource Type. This is an optional parameter.

[hosting_rt_id]

int

The Resource Type ID of the "DNS Hosting" Resource Type. This is an optional parameter.

There are the following scenarios of the using this method:

  • Both the subscription_id and the hosting_rt_id parameters are specified. In this scenario DNS Hosting is provisioned on the basis of the specified "DNS Hosting" Resource Type from the specified Subscription.
  • Only the subscription_id parameter is specified. In this case DNS Hosting is provisioned on the basis of the "DNS Hosting" Resource Type, which is obtained from the specified Subscription.
  • Only the hosting_rt_id parameter is specified. In this scenario Operations looks for the specified "DNS Hosting" Resource Type in all existing Account's Subscriptions, the first encountered Subscription containing the specified Resource Type is used for DNS Hosting provisioning.
  • None of the two parameters are specified. In this scenario, Operations looks for Subscriptions containing the "DNS Hosting" Resource Type, the first encountered Subscription with this Resource Type is used for provisioning.

The method has no output parameters.

See also pem.removeDNSHosting.

Note: Starting from Operations 2.6.4 this method can also be called under Reseller permissions.