WinRMListener Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. WinRMListener
- com.
Implements
public final class WinRMListener
implements JsonSerializable<WinRMListener>
Describes Protocol and thumbprint of Windows Remote Management listener.
Constructor Summary
Constructor | Description |
---|---|
WinRMListener() |
Creates an instance of Win |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
certificateUrl()
Get the certificate |
static
Win |
fromJson(JsonReader jsonReader)
Reads an instance of Win |
Protocol |
protocol()
Get the protocol property: Specifies the protocol of WinRM listener. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Win |
withCertificateUrl(String certificateUrl)
Set the certificate |
Win |
withProtocol(ProtocolTypes protocol)
Set the protocol property: Specifies the protocol of WinRM listener. |
Methods inherited from java.lang.Object
Constructor Details
WinRMListener
public WinRMListener()
Creates an instance of WinRMListener class.
Method Details
certificateUrl
public String certificateUrl()
Get the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/\#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8:
{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).
Returns:
fromJson
public static WinRMListener fromJson(JsonReader jsonReader)
Reads an instance of WinRMListener from the JsonReader.
Parameters:
Returns:
Throws:
protocol
public ProtocolTypes protocol()
Get the protocol property: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCertificateUrl
public WinRMListener withCertificateUrl(String certificateUrl)
Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/\#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8:
{
"data":"",
"dataType":"pfx",
"password":""
}
To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).
Parameters:
Returns:
withProtocol
public WinRMListener withProtocol(ProtocolTypes protocol)
Set the protocol property: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**.
Parameters:
Returns:
Applies to
Azure SDK for Java