Class AgentConfiguration

java.lang.Object
com.azure.resourcemanager.hybridcompute.models.AgentConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentConfiguration>

public final class AgentConfiguration extends Object implements com.azure.json.JsonSerializable<AgentConfiguration>
Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
  • Constructor Details

    • AgentConfiguration

      public AgentConfiguration()
      Creates an instance of AgentConfiguration class.
  • Method Details

    • proxyUrl

      public String proxyUrl()
      Get the proxyUrl property: Specifies the URL of the proxy to be used.
      Returns:
      the proxyUrl value.
    • incomingConnectionsPorts

      public List<String> incomingConnectionsPorts()
      Get the incomingConnectionsPorts property: Specifies the list of ports that the agent will be able to listen on.
      Returns:
      the incomingConnectionsPorts value.
    • extensionsAllowList

      public List<ConfigurationExtension> extensionsAllowList()
      Get the extensionsAllowList property: Array of extensions that are allowed to be installed or updated.
      Returns:
      the extensionsAllowList value.
    • extensionsBlockList

      public List<ConfigurationExtension> extensionsBlockList()
      Get the extensionsBlockList property: Array of extensions that are blocked (cannot be installed or updated).
      Returns:
      the extensionsBlockList value.
    • proxyBypass

      public List<String> proxyBypass()
      Get the proxyBypass property: List of service names which should not use the specified proxy server.
      Returns:
      the proxyBypass value.
    • extensionsEnabled

      public String extensionsEnabled()
      Get the extensionsEnabled property: Specifies whether the extension service is enabled or disabled.
      Returns:
      the extensionsEnabled value.
    • guestConfigurationEnabled

      public String guestConfigurationEnabled()
      Get the guestConfigurationEnabled property: Specified whether the guest configuration service is enabled or disabled.
      Returns:
      the guestConfigurationEnabled value.
    • configMode

      public AgentConfigurationMode configMode()
      Get the configMode property: Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists and guest configuration, maintained by Microsoft.
      Returns:
      the configMode value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AgentConfiguration>
      Throws:
      IOException
    • fromJson

      public static AgentConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AgentConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AgentConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the AgentConfiguration.