[−][src]Struct tenable::types::AccessGroupsRules
AccessGroupsRules
blueprint
Fields
_type: Option<String>
The type of asset rule. The asset rule type corresponds to the type of data you can specify in the terms
parameter. For a complete list of supported rule types, use the GET /access-groups/filters endpoint.
operator: Option<String>
The operator that specifies how Tenable.io matches the terms value to asset data. Possible operators include: - eq—Tenable.io matches the rule to assets based on an exact match of the specified term. Note: Tenable.io interprets the operator as equals
for ipv4 rules that specify a single IP address, but interprets the operator as contains
for ipv4 rules that specify an IP range or CIDR range. - match—Tenable.io matches the rule to assets based a partial match of the specified term. - starts—Tenable.io matches the rule to assets that start with the specified term. - ends—Tenable.io matches the rule to assets that end with the specified term. For a complete list of operators by rule type, use the GET /access-groups/rules/filters endpoint.
terms: Option<Vec<String>>
The values that Tenable.io uses to match an asset to the rule. A term must correspond to the rule type. For example: - If the rule type is aws_account
, the term is an AWS account ID. - If the rule type is fqdn
, the term is a hostname or a fully-qualified domain name (FQDN). - If the rule type is ipv4
, the term is an individual IPv4 address, a range of IPv4 addresses (for example, 172.204.81.57-172.204.81.60), or a CIDR range (for example, 172.204.81.57/24). For a complete list of supported values by rule type, use the GET /access-groups/rules/filters endpoint. If you specify multiple terms values, Tenable.io includes an asset in the access group if the asset's attributes match any of the terms in the rule.
You can specify up to 100,000 terms per asset rule.
Trait Implementations
impl Clone for AccessGroupsRules
[src]
fn clone(&self) -> AccessGroupsRules
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AccessGroupsRules
[src]
impl<'de> Deserialize<'de> for AccessGroupsRules
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AccessGroupsRules> for AccessGroupsRules
[src]
fn eq(&self, other: &AccessGroupsRules) -> bool
[src]
fn ne(&self, other: &AccessGroupsRules) -> bool
[src]
impl Serialize for AccessGroupsRules
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AccessGroupsRules
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccessGroupsRules
impl Send for AccessGroupsRules
impl Sync for AccessGroupsRules
impl Unpin for AccessGroupsRules
impl UnwindSafe for AccessGroupsRules
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,