pub struct IpAccessManagement {
    pub client: Client,
}

Fields

client: Client

Implementations

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.

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.

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.

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.

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.

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

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

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

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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