Class ResourceFilters
Information to filter the actual target resources in an operation. e.g: While querying a DATABASE_INSIGHTS_DATA_OBJECT using /opsiDataObjects/actions/queryData API, if resourceFilters is set with valid value for definedTagEquals field, only data of the database insights resources for which the specified freeform tags exist will be considered for the actual query scope.
Inherited Members
Namespace: Oci.OpsiService.Models
Assembly: OCI.DotNetSDK.Opsi.dll
Syntax
public class ResourceFilters
Properties
CompartmentIdInSubtree
Declaration
[JsonProperty(PropertyName = "compartmentIdInSubtree")]
public bool? CompartmentIdInSubtree { get; set; }
Property Value
Type | Description |
---|---|
bool? | A flag to consider all resources within a given compartment and all sub-compartments. |
DefinedTagEquals
Declaration
[JsonProperty(PropertyName = "definedTagEquals")]
public List<string> DefinedTagEquals { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of tag filters to apply. Only resources with a defined tag matching the value will be considered. Each item in the list has the format "{namespace}.{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". |
DefinedTagExists
Declaration
[JsonProperty(PropertyName = "definedTagExists")]
public List<string> DefinedTagExists { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of tag existence filters to apply. Only resources for which the specified defined tags exist will be considered. Each item in the list has the format "{namespace}.{tagName}.true" (for checking existence of a defined tag) or "{namespace}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". |
FreeformTagEquals
Declaration
[JsonProperty(PropertyName = "freeformTagEquals")]
public List<string> FreeformTagEquals { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of tag filters to apply. Only resources with a freeform tag matching the value will be considered. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values for different tag names are interpreted as "AND". |
FreeformTagExists
Declaration
[JsonProperty(PropertyName = "freeformTagExists")]
public List<string> FreeformTagExists { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of tag existence filters to apply. Only resources for which the specified freeform tags exist will be considered. The key for each tag is "{tagName}.true". All inputs are case-insensitive. Currently, only existence ("true" at the end) is supported. Absence ("false" at the end) is not supported. Multiple values for different tag names are interpreted as "AND". |
ResourceStatus
Declaration
[JsonProperty(PropertyName = "resourceStatus", ItemConverterType = typeof(StringEnumConverter))]
public List<ResourceStatus> ResourceStatus { get; set; }
Property Value
Type | Description |
---|---|
List<ResourceStatus> | Filter resources by status, multiple options could be chosen to show authorized resources even if those are disabled or deleted. |