MatchingRule¶
-
class
oci.os_management_hub.models.MatchingRule(**kwargs)¶ Bases:
objectAn object that defines the set of rules that identifies the target instances in a dynamic set.
Attributes
ARCHITECTURES_AARCH64A constant which can be used with the architectures property of a MatchingRule. ARCHITECTURES_X86_64A constant which can be used with the architectures property of a MatchingRule. LOCATIONS_AZUREA constant which can be used with the locations property of a MatchingRule. LOCATIONS_EC2A constant which can be used with the locations property of a MatchingRule. LOCATIONS_GCPA constant which can be used with the locations property of a MatchingRule. LOCATIONS_OCI_COMPUTEA constant which can be used with the locations property of a MatchingRule. LOCATIONS_ON_PREMISEA constant which can be used with the locations property of a MatchingRule. OS_FAMILIES_ALLA constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_ORACLE_LINUX_10A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_ORACLE_LINUX_6A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_ORACLE_LINUX_7A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_ORACLE_LINUX_8A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_ORACLE_LINUX_9A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_UBUNTU_20_04A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_UBUNTU_22_04A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_UBUNTU_24_04A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_WINDOWS_11A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_WINDOWS_SERVER_2016A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_WINDOWS_SERVER_2019A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_WINDOWS_SERVER_2022A constant which can be used with the os_families property of a MatchingRule. OS_FAMILIES_WINDOWS_SERVER_2025A constant which can be used with the os_families property of a MatchingRule. OS_NAMES_ORACLE_LINUXA constant which can be used with the os_names property of a MatchingRule. OS_NAMES_UBUNTUA constant which can be used with the os_names property of a MatchingRule. OS_NAMES_WINDOWS_SERVERA constant which can be used with the os_names property of a MatchingRule. STATUSES_DELETINGA constant which can be used with the statuses property of a MatchingRule. STATUSES_ERRORA constant which can be used with the statuses property of a MatchingRule. STATUSES_NORMALA constant which can be used with the statuses property of a MatchingRule. STATUSES_ONBOARDINGA constant which can be used with the statuses property of a MatchingRule. STATUSES_REBOOTINGA constant which can be used with the statuses property of a MatchingRule. STATUSES_REGISTRATION_ERRORA constant which can be used with the statuses property of a MatchingRule. STATUSES_UNREACHABLEA constant which can be used with the statuses property of a MatchingRule. STATUSES_WARNINGA constant which can be used with the statuses property of a MatchingRule. architecturesGets the architectures of this MatchingRule. display_namesGets the display_names of this MatchingRule. is_reboot_requiredGets the is_reboot_required of this MatchingRule. locationsGets the locations of this MatchingRule. managed_instance_group_idsGets the managed_instance_group_ids of this MatchingRule. managed_instance_idsGets the managed_instance_ids of this MatchingRule. os_familiesGets the os_families of this MatchingRule. os_namesGets the os_names of this MatchingRule. statusesGets the statuses of this MatchingRule. tagsGets the tags of this MatchingRule. Methods
__init__(**kwargs)Initializes a new MatchingRule object with values from keyword arguments. -
ARCHITECTURES_AARCH64= 'AARCH64'¶ A constant which can be used with the architectures property of a MatchingRule. This constant has a value of “AARCH64”
-
ARCHITECTURES_X86_64= 'X86_64'¶ A constant which can be used with the architectures property of a MatchingRule. This constant has a value of “X86_64”
-
LOCATIONS_AZURE= 'AZURE'¶ A constant which can be used with the locations property of a MatchingRule. This constant has a value of “AZURE”
-
LOCATIONS_EC2= 'EC2'¶ A constant which can be used with the locations property of a MatchingRule. This constant has a value of “EC2”
-
LOCATIONS_GCP= 'GCP'¶ A constant which can be used with the locations property of a MatchingRule. This constant has a value of “GCP”
-
LOCATIONS_OCI_COMPUTE= 'OCI_COMPUTE'¶ A constant which can be used with the locations property of a MatchingRule. This constant has a value of “OCI_COMPUTE”
-
LOCATIONS_ON_PREMISE= 'ON_PREMISE'¶ A constant which can be used with the locations property of a MatchingRule. This constant has a value of “ON_PREMISE”
-
OS_FAMILIES_ALL= 'ALL'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ALL”
-
OS_FAMILIES_ORACLE_LINUX_10= 'ORACLE_LINUX_10'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ORACLE_LINUX_10”
-
OS_FAMILIES_ORACLE_LINUX_6= 'ORACLE_LINUX_6'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ORACLE_LINUX_6”
-
OS_FAMILIES_ORACLE_LINUX_7= 'ORACLE_LINUX_7'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ORACLE_LINUX_7”
-
OS_FAMILIES_ORACLE_LINUX_8= 'ORACLE_LINUX_8'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ORACLE_LINUX_8”
-
OS_FAMILIES_ORACLE_LINUX_9= 'ORACLE_LINUX_9'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “ORACLE_LINUX_9”
-
OS_FAMILIES_UBUNTU_20_04= 'UBUNTU_20_04'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “UBUNTU_20_04”
-
OS_FAMILIES_UBUNTU_22_04= 'UBUNTU_22_04'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “UBUNTU_22_04”
-
OS_FAMILIES_UBUNTU_24_04= 'UBUNTU_24_04'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “UBUNTU_24_04”
-
OS_FAMILIES_WINDOWS_11= 'WINDOWS_11'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “WINDOWS_11”
-
OS_FAMILIES_WINDOWS_SERVER_2016= 'WINDOWS_SERVER_2016'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “WINDOWS_SERVER_2016”
-
OS_FAMILIES_WINDOWS_SERVER_2019= 'WINDOWS_SERVER_2019'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “WINDOWS_SERVER_2019”
-
OS_FAMILIES_WINDOWS_SERVER_2022= 'WINDOWS_SERVER_2022'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “WINDOWS_SERVER_2022”
-
OS_FAMILIES_WINDOWS_SERVER_2025= 'WINDOWS_SERVER_2025'¶ A constant which can be used with the os_families property of a MatchingRule. This constant has a value of “WINDOWS_SERVER_2025”
-
OS_NAMES_ORACLE_LINUX= 'ORACLE_LINUX'¶ A constant which can be used with the os_names property of a MatchingRule. This constant has a value of “ORACLE_LINUX”
-
OS_NAMES_UBUNTU= 'UBUNTU'¶ A constant which can be used with the os_names property of a MatchingRule. This constant has a value of “UBUNTU”
-
OS_NAMES_WINDOWS_SERVER= 'WINDOWS_SERVER'¶ A constant which can be used with the os_names property of a MatchingRule. This constant has a value of “WINDOWS_SERVER”
-
STATUSES_DELETING= 'DELETING'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “DELETING”
-
STATUSES_ERROR= 'ERROR'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “ERROR”
-
STATUSES_NORMAL= 'NORMAL'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “NORMAL”
-
STATUSES_ONBOARDING= 'ONBOARDING'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “ONBOARDING”
-
STATUSES_REBOOTING= 'REBOOTING'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “REBOOTING”
-
STATUSES_REGISTRATION_ERROR= 'REGISTRATION_ERROR'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “REGISTRATION_ERROR”
-
STATUSES_UNREACHABLE= 'UNREACHABLE'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “UNREACHABLE”
-
STATUSES_WARNING= 'WARNING'¶ A constant which can be used with the statuses property of a MatchingRule. This constant has a value of “WARNING”
-
__init__(**kwargs)¶ Initializes a new MatchingRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - tags (list[oci.os_management_hub.models.Tag]) – The value to assign to the tags property of this MatchingRule.
- managed_instance_ids (list[str]) – The value to assign to the managed_instance_ids property of this MatchingRule.
- managed_instance_group_ids (list[str]) – The value to assign to the managed_instance_group_ids property of this MatchingRule.
- display_names (list[str]) – The value to assign to the display_names property of this MatchingRule.
- os_names (list[str]) – The value to assign to the os_names property of this MatchingRule. Allowed values for items in this list are: “ORACLE_LINUX”, “UBUNTU”, “WINDOWS_SERVER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- architectures (list[str]) – The value to assign to the architectures property of this MatchingRule. Allowed values for items in this list are: “X86_64”, “AARCH64”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- os_families (list[str]) – The value to assign to the os_families property of this MatchingRule. Allowed values for items in this list are: “ORACLE_LINUX_10”, “ORACLE_LINUX_9”, “ORACLE_LINUX_8”, “ORACLE_LINUX_7”, “ORACLE_LINUX_6”, “WINDOWS_SERVER_2016”, “WINDOWS_SERVER_2019”, “WINDOWS_SERVER_2022”, “WINDOWS_SERVER_2025”, “WINDOWS_11”, “ALL”, “UBUNTU_20_04”, “UBUNTU_22_04”, “UBUNTU_24_04”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- statuses (list[str]) – The value to assign to the statuses property of this MatchingRule. Allowed values for items in this list are: “NORMAL”, “UNREACHABLE”, “ERROR”, “WARNING”, “REGISTRATION_ERROR”, “DELETING”, “ONBOARDING”, “REBOOTING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- locations (list[str]) – The value to assign to the locations property of this MatchingRule. Allowed values for items in this list are: “ON_PREMISE”, “OCI_COMPUTE”, “AZURE”, “EC2”, “GCP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- is_reboot_required (bool) – The value to assign to the is_reboot_required property of this MatchingRule.
-
architectures¶ Gets the architectures of this MatchingRule. The list of managed instance architectures.
Allowed values for items in this list are: “X86_64”, “AARCH64”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The architectures of this MatchingRule. Return type: list[str]
-
display_names¶ Gets the display_names of this MatchingRule. The list of managed instance display names.
Returns: The display_names of this MatchingRule. Return type: list[str]
-
is_reboot_required¶ Gets the is_reboot_required of this MatchingRule. Indicates if the managed instance needs to be rebooted.
Returns: The is_reboot_required of this MatchingRule. Return type: bool
-
locations¶ Gets the locations of this MatchingRule. The list of managed instance locations.
Allowed values for items in this list are: “ON_PREMISE”, “OCI_COMPUTE”, “AZURE”, “EC2”, “GCP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The locations of this MatchingRule. Return type: list[str]
-
managed_instance_group_ids¶ Gets the managed_instance_group_ids of this MatchingRule. The list of managed instance group IDs.
Returns: The managed_instance_group_ids of this MatchingRule. Return type: list[str]
-
managed_instance_ids¶ Gets the managed_instance_ids of this MatchingRule. The list of managed instance ids.
Returns: The managed_instance_ids of this MatchingRule. Return type: list[str]
-
os_families¶ Gets the os_families of this MatchingRule. The list of managed instance OS families.
Allowed values for items in this list are: “ORACLE_LINUX_10”, “ORACLE_LINUX_9”, “ORACLE_LINUX_8”, “ORACLE_LINUX_7”, “ORACLE_LINUX_6”, “WINDOWS_SERVER_2016”, “WINDOWS_SERVER_2019”, “WINDOWS_SERVER_2022”, “WINDOWS_SERVER_2025”, “WINDOWS_11”, “ALL”, “UBUNTU_20_04”, “UBUNTU_22_04”, “UBUNTU_24_04”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The os_families of this MatchingRule. Return type: list[str]
-
os_names¶ Gets the os_names of this MatchingRule. The list of managed instance OS names.
Allowed values for items in this list are: “ORACLE_LINUX”, “UBUNTU”, “WINDOWS_SERVER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The os_names of this MatchingRule. Return type: list[str]
-
statuses¶ Gets the statuses of this MatchingRule. The list of managed instance statuses.
Allowed values for items in this list are: “NORMAL”, “UNREACHABLE”, “ERROR”, “WARNING”, “REGISTRATION_ERROR”, “DELETING”, “ONBOARDING”, “REBOOTING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The statuses of this MatchingRule. Return type: list[str]
Gets the tags of this MatchingRule. The list of the managed instance tags.
Returns: The tags of this MatchingRule. Return type: list[oci.os_management_hub.models.Tag]
-