Struct IpAccessManagement

Source
pub struct IpAccessManagement {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

Source§

impl IpAccessManagement

Source

pub async fn get_access_settings_whitelist( &self, ) -> Result<Response<IpAccessResponse>, ClientError>

Retrieve a list of currently allowed IPs.

This function performs a GET to the /access_settings/whitelist endpoint.

This endpoint allows you to retrieve a list of IP addresses that are currently allowed to access your account.

Each IP address returned to you will have created_at and updated_at dates. Each IP will also be associated with an id that can be used to remove the address from your allow list.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
Source

pub async fn post_access_settings_whitelist( &self, body: &PostAccessSettingsWhitelistRequest, ) -> Result<Response<IpAccessResponse>, ClientError>

Add one or more IPs to the allow list.

This function performs a POST to the /access_settings/whitelist endpoint.

This endpoint allows you to add one or more allowed IP addresses.

To allow one or more IP addresses, pass them to this endpoint in an array. Once an IP address is added to your allow list, it will be assigned an id that can be used to remove the address. You can retrieve the ID associated with an IP using the “Retrieve a list of currently allowed IPs” endpoint.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
Source

pub async fn delete_access_settings_whitelist( &self, body: &DeleteAccessSettingsWhitelistRequest, ) -> Result<Response<Help>, ClientError>

Remove one or more IPs from the allow list.

This function performs a DELETE to the /access_settings/whitelist endpoint.

This endpoint allows you to remove one or more IP addresses from your list of allowed addresses.

To remove one or more IP addresses, pass this endpoint an array containing the ID(s) associated with the IP(s) you intend to remove. You can retrieve the IDs associated with your allowed IP addresses using the “Retrieve a list of currently allowed IPs” endpoint.

It is possible to remove your own IP address, which will block access to your account. You will need to submit a support ticket if this happens. For this reason, it is important to double check that you are removing only the IPs you intend to remove when using this endpoint.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
Source

pub async fn get_access_settings_activity( &self, limit: i64, ) -> Result<Response<GetAccessSettingsActivityResponse>, ClientError>

Retrieve all recent access attempts.

This function performs a GET to the /access_settings/activity endpoint.

This endpoint allows you to retrieve a list of all of the IP addresses that recently attempted to access your account either through the User Interface or the API.

Parameters:

  • limit: i64 – Limits the number of IPs to return.
  • on_behalf_of: &str – The license key provided with your New Relic account.
Source

pub async fn get_access_settings_whitelist_rule( &self, rule_id: &str, ) -> Result<Response<IpAccessResponse>, ClientError>

Retrieve a specific allowed IP.

This function performs a GET to the /access_settings/whitelist/{rule_id} endpoint.

This endpoint allows you to retreive a specific IP address that has been allowed to access your account.

You must include the ID for the specific IP address you want to retrieve in your call. You can retrieve the IDs associated with your allowed IP addresses using the “Retrieve a list of currently allowed IPs” endpoint.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
Source

pub async fn delete_access_settings_whitelist_rule( &self, rule_id: &str, ) -> Result<Response<Help>, ClientError>

Remove a specific IP from the allowed list.

This function performs a DELETE to the /access_settings/whitelist/{rule_id} endpoint.

This endpoint allows you to remove a specific IP address from your list of allowed addresses.

When removing a specific IP address from your list, you must include the ID in your call. You can retrieve the IDs associated with your allowed IP addresses using the “Retrieve a list of currently allowed IPs” endpoint.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,