ApplicationGatewayOperationsExtensions.AddCertificate 方法 (IApplicationGatewayOperations, String, String, ApplicationGatewayCertificate)
添加证书操作将 ssl 证书添加到应用程序网关 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx 有关详细信息)
命名空间: Microsoft.WindowsAzure.Management.Network
程序集: Microsoft.WindowsAzure.Management.Network(Microsoft.WindowsAzure.Management.Network.dll 中)
语法
public static ApplicationGatewayOperationResponse AddCertificate(
this IApplicationGatewayOperations operations,
string gatewayName,
string certificateName,
ApplicationGatewayCertificate certificate
)
public:
[ExtensionAttribute]
static ApplicationGatewayOperationResponse^ AddCertificate(
IApplicationGatewayOperations^ operations,
String^ gatewayName,
String^ certificateName,
ApplicationGatewayCertificate^ certificate
)
static member AddCertificate :
operations:IApplicationGatewayOperations *
gatewayName:string *
certificateName:string *
certificate:ApplicationGatewayCertificate -> ApplicationGatewayOperationResponse
<ExtensionAttribute>
Public Shared Function AddCertificate (
operations As IApplicationGatewayOperations,
gatewayName As String,
certificateName As String,
certificate As ApplicationGatewayCertificate
) As ApplicationGatewayOperationResponse
参数
operations
Type: Microsoft.WindowsAzure.Management.Network.IApplicationGatewayOperations对 Microsoft.WindowsAzure.Management.Network.IApplicationGatewayOperations 引用。
gatewayName
Type: System.String必需。 网关名称
certificateName
Type: System.String必需。 证书名称
certificate
Type: Microsoft.WindowsAzure.Management.Network.Models.ApplicationGatewayCertificate必需。 应用程序网关的 ssl 证书
返回值
Type: Microsoft.WindowsAzure.Management.Network.Models.ApplicationGatewayOperationResponse
响应正文包含指定的异步操作,指示它是已成功、 正在进行,还是已失败的状态。 请注意此状态为获取操作状态操作本身返回的 HTTP 状态代码不同。 如果异步操作成功,则响应正文包含成功请求的 HTTP 状态代码。 如果异步操作失败,则响应正文包含失败请求的 HTTP 状态代码,还包含关于失败的错误信息。
请参阅
ApplicationGatewayOperationsExtensions 类
Microsoft.WindowsAzure.Management.Network 命名空间
返回页首