你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebSiteSlotPublicCertificateCollection.CreateOrUpdate 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为应用创建主机名绑定的说明。
- 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slots}/publicCertificates/{publicCertificateName}
- 操作IdWebApps_CreateOrUpdatePublicCertificateSlot
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.WebSiteSlotPublicCertificateResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string publicCertificateName, Azure.ResourceManager.AppService.PublicCertificateData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppService.PublicCertificateData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.WebSiteSlotPublicCertificateResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppService.PublicCertificateData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.WebSiteSlotPublicCertificateResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, publicCertificateName As String, data As PublicCertificateData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of WebSiteSlotPublicCertificateResource)
参数
- waitUntil
- WaitUntil
Completed 如果方法应等待返回,直到服务上长时间运行的操作完成; Started 如果它应在启动操作后返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例。
- publicCertificateName
- String
公共证书名称。
公共证书详细信息。 这是 PublicCertificate 对象的 JSON 表示形式。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
publicCertificateName
是一个空字符串,预期为非空。
publicCertificateName
或 data
为 null。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈