HostEndpointSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. HostEndpointSettings
- com.
Implements
public final class HostEndpointSettings
implements JsonSerializable<HostEndpointSettings>
Specifies particular host endpoint settings.
Constructor Summary
| Constructor | Description |
|---|---|
| HostEndpointSettings() |
Creates an instance of Host |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Host |
fromJson(JsonReader jsonReader)
Reads an instance of Host |
| String |
inVMAccessControlProfileReferenceId()
Get the in |
| Modes |
mode()
Get the mode property: Specifies the execution mode. |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
useLocalFileRules()
Get the use |
| void |
validate()
Validates the instance. |
|
Host |
withInVMAccessControlProfileReferenceId(String inVMAccessControlProfileReferenceId)
Set the in |
|
Host |
withMode(Modes mode)
Set the mode property: Specifies the execution mode. |
|
Host |
withUseLocalFileRules(Boolean useLocalFileRules)
Set the use |
Methods inherited from java.lang.Object
Constructor Details
HostEndpointSettings
public HostEndpointSettings()
Creates an instance of HostEndpointSettings class.
Method Details
fromJson
public static HostEndpointSettings fromJson(JsonReader jsonReader)
Reads an instance of HostEndpointSettings from the JsonReader.
Parameters:
Returns:
Throws:
inVMAccessControlProfileReferenceId
public String inVMAccessControlProfileReferenceId()
Get the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.
Returns:
mode
public Modes mode()
Get the mode property: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.
Returns:
toJson
useLocalFileRules
public Boolean useLocalFileRules()
Get the useLocalFileRules property: When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.
Returns:
validate
public void validate()
Validates the instance.
withInVMAccessControlProfileReferenceId
public HostEndpointSettings withInVMAccessControlProfileReferenceId(String inVMAccessControlProfileReferenceId)
Set the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.
Parameters:
Returns:
withMode
public HostEndpointSettings withMode(Modes mode)
Set the mode property: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.
Parameters:
Returns:
withUseLocalFileRules
public HostEndpointSettings withUseLocalFileRules(Boolean useLocalFileRules)
Set the useLocalFileRules property: When set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.
Parameters:
Returns: