共用方式為


WebSiteResource.GetSitePublicCertificate(String, CancellationToken) Method

Definition

Description for Get the named public certificate for an app (or deployment slot, if specified).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}
  • Operation Id: WebApps_GetPublicCertificate
  • Default Api Version: 2023-12-01
  • Resource: SitePublicCertificateResource
public virtual Azure.Response<Azure.ResourceManager.AppService.SitePublicCertificateResource> GetSitePublicCertificate (string publicCertificateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSitePublicCertificate : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.SitePublicCertificateResource>
override this.GetSitePublicCertificate : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.SitePublicCertificateResource>
Public Overridable Function GetSitePublicCertificate (publicCertificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SitePublicCertificateResource)

Parameters

publicCertificateName
String

Public certificate name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

publicCertificateName is null.

publicCertificateName is an empty string, and was expected to be non-empty.

Applies to