你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzCdnCustomDomain
获取终结点中的现有自定义域。
语法
Get-AzCdnCustomDomain
-EndpointName <String>
-ProfileName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCdnCustomDomain
-EndpointName <String>
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCdnCustomDomain
-InputObject <ICdnIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取终结点中的现有自定义域。
示例
示例 1:列出 AzureCDN 终结点下的 AzureCDN 自定义域
Get-AzCdnCustomDomain -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001
Name ResourceGroupName
---- -----------------
customdomain001 testps-rg-da16jm
customdomain002 testps-rg-da16jm
列出 AzureCDN 终结点下的 AzureCDN 自定义域
示例 2:在 AzureCDN 终结点下获取 AzureCDN 自定义域
Get-AzCdnCustomDomain -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name customdomain001
Name ResourceGroupName
---- -----------------
customdomain001 testps-rg-da16jm
获取 AzureCDN 终结点下的 AzureCDN 自定义域
示例 3:通过标识在 AzureCDN 终结点下获取 AzureCDN 自定义域
New-AzCdnCustomDomain -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name customdomain010 -HostName 'testcm.dev.cdn.azure.cn' | Get-AzCdnCustomDomain
Name ResourceGroupName
---- -----------------
customdomain010 testps-rg-da16jm
通过标识在 AzureCDN 终结点下获取 AzureCDN 自定义域
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EndpointName
全局唯一的配置文件下的终结点的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | ICdnIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
终结点中自定义域的名称。
类型: | String |
别名: | CustomDomainName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProfileName
资源组中唯一的 CDN 配置文件的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
Azure 订阅中的资源组的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
Azure 订阅 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |