Updated on 2024-12-24 GMT+08:00

Adding Domain Names in Batches

If multiple domain names need to be connected to AAD, you can add them in batches using XML files.

Adding Domain Names to AAD in Batches

  1. Prepare the .xml domain name file based on the following example.

    <DomainList>
      <DomainConfig>
        <Domain>example.domain.com</Domain>
        <InstanceConfig>
          <InstanceList>CAD-159</InstanceList>
        </InstanceConfig>
        <RealServerConfig>
          <ServerPortList>80,443</ServerPortList>
          <ServerList>xx.xx.xx.xx</ServerList>
        </RealServerConfig>
        <CertificateConfig>
          <Certificate>certificateName</Certificate>
        </CertificateConfig>
      </DomainConfig>
      <DomainConfig>
        <Domain>demo.domain.com</Domain>
        <InstanceConfig>
          <InstanceList>CAD-169,CAD-179</InstanceList>
        </InstanceConfig>
        <RealServerConfig>
          <ServerPortList>80,443</ServerPortList>
          <ServerList>learn.domain.com</ServerList>
        </RealServerConfig>
      </DomainConfig>
    </DomainList>
    Table 1 Parameter description

    Parameter

    Description

    <Domain>example.domain.com</Domain>

    example.domain.com indicates the name of the domain to be added. Only one domain name can be set for this field.

    <InstanceList>CAD-159</InstanceList>

    CAD-159 indicates the ID of the AAD instance. Use commas (,) to separate multiple instances.

    <Certificate>certificateName</Certificate>

    certificateName indicates the certificate used by the HTTPS port. If there is no HTTPS port, this parameter can be ignored.

    <RealServerConfig><ServerPortList>80,443</ServerPortList><ServerList>xx.xx.xx.xx</ServerList></RealServerConfig>

    Origin server details

    • 80,443 indicates the port number of the origin server. Use commas (,) to separate multiple port numbers.
    • xx.xx.xx.xx indicates the origin server address. Use commas (,) to separate multiple addresses.
    • Both origin server IP addresses and origin server domain names are supported, but they cannot be used at the same time.

  2. Log in to the management console.
  3. Select a region in the upper part of the page, click in the upper left corner of the page, and choose Security & Compliance > Anti-DDoS Service. The Anti-DDoS Service Center page is displayed.
  4. In the navigation pane on the left, choose Advanced Anti-DDoS > Domain Name Access. The Domain Name Access page is displayed.

    Figure 1 Domain name access

  5. Click Batch Add.
  6. Click Upload file and select the local .xml domain name file.

    Figure 2 Uploading the domain name file

  7. Click Close.