MatchingRule

class oci.os_management_hub.models.MatchingRule(**kwargs)

Bases: object

An object that defines the set of rules that identifies the target instances in a dynamic set.

Attributes:

ARCHITECTURES_AARCH64

A constant which can be used with the architectures property of a MatchingRule.

ARCHITECTURES_X86_64

A constant which can be used with the architectures property of a MatchingRule.

LOCATIONS_AZURE

A constant which can be used with the locations property of a MatchingRule.

LOCATIONS_EC2

A constant which can be used with the locations property of a MatchingRule.

LOCATIONS_GCP

A constant which can be used with the locations property of a MatchingRule.

LOCATIONS_OCI_COMPUTE

A constant which can be used with the locations property of a MatchingRule.

LOCATIONS_ON_PREMISE

A constant which can be used with the locations property of a MatchingRule.

OS_FAMILIES_ALL

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_ORACLE_LINUX_10

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_ORACLE_LINUX_6

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_ORACLE_LINUX_7

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_ORACLE_LINUX_8

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_ORACLE_LINUX_9

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_UBUNTU_20_04

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_UBUNTU_22_04

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_UBUNTU_24_04

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_WINDOWS_11

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_WINDOWS_SERVER_2016

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_WINDOWS_SERVER_2019

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_WINDOWS_SERVER_2022

A constant which can be used with the os_families property of a MatchingRule.

OS_FAMILIES_WINDOWS_SERVER_2025

A constant which can be used with the os_families property of a MatchingRule.

OS_NAMES_ORACLE_LINUX

A constant which can be used with the os_names property of a MatchingRule.

OS_NAMES_UBUNTU

A constant which can be used with the os_names property of a MatchingRule.

OS_NAMES_WINDOWS_SERVER

A constant which can be used with the os_names property of a MatchingRule.

STATUSES_DELETING

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_ERROR

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_NORMAL

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_ONBOARDING

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_REBOOTING

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_REGISTRATION_ERROR

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_UNREACHABLE

A constant which can be used with the statuses property of a MatchingRule.

STATUSES_WARNING

A constant which can be used with the statuses property of a MatchingRule.

architectures

Gets the architectures of this MatchingRule.

display_names

Gets the display_names of this MatchingRule.

is_reboot_required

Gets the is_reboot_required of this MatchingRule.

locations

Gets the locations of this MatchingRule.

managed_instance_group_ids

Gets the managed_instance_group_ids of this MatchingRule.

managed_instance_ids

Gets the managed_instance_ids of this MatchingRule.

os_families

Gets the os_families of this MatchingRule.

os_names

Gets the os_names of this MatchingRule.

statuses

Gets the statuses of this MatchingRule.

tags

Gets 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.

property 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]

property 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]

property 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

property 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]

property 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]

property 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]

property 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]

property 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]

property 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]

property tags

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]