Domain

New-DOMDomain

Synopsis

Add domains.

Syntax

New-DOMDomain -DomainName <String[]> -ValidationScope <String[]> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-DOMDomain -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Adds domains to validate. For each -DomainName you add, you must also provide a -ValidationScope of either HOST, WILDCARD, or DOMAIN.

If you provide more than one entry for a -DomainName, the used value for the -ValidationScope is the one at the same position in the provided list. For example, the first -DomainName is paired with the first -ValidationScope, the second with the second, and so on.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑Body
Conditionally required

A request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑DomainName
Conditionally required

Name of the domain.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

‑ValidationScope
Conditionally required

Validation scope of the domain. For HOST, the scope is only the exactly specified domain. For WILDCARD, the scope covers any hostname within one subdomain level. For DOMAIN, the scope covers any hostnames under the domain, regardless of the level of subdomains.

Related Links