Tools to Obtain and Work with Cloud Provider CIDR Blocks
Cloud providers will be added on an as-needed or request basis (i.e. if you need another cloud provider, file an issue or — prefereably — PR).
Some cloud providers provide either an API or a file that contains all of the public networks that make up their cloud infrastructure. Many force you to obtain this data from publicly available internet routing registration data. Tools are provided that provide a standard API to obtain the network information for supported cloud providers. Each provider function returns processed, raw data structures that can be normalized with additional functions to enable predictable and consistent data formats for further processing.
A future plan is to memoise
the results
and also provide disk-level caching since these CIDRs don't change frequently enough to
warrant network traffic for each call.
The following functions are implemented:
all_ranges
: Build a complete data frame of all known cloud provider rangesamazon_ranges
: Amazon AWS cloud rangesazure_ranges
: Azure rangesdigitalocean_ranges
: Digital Ocean rangesgoogle_ranges
: Google Cloud rangeslinode_ranges
: Linode rangesnormalize_ipv4
: Normalize Cloud CIDR return valuesovh_ranges
: OVH rangesrackspace_ranges
: Rackspace rangessoftlayer_ranges
: Softlayer rangesdevtools::install_git("https://github.com/cloudyr/cloudcidrs.git")
options(width=120)
library(cloudcidrs) # current verison packageVersion("cloudcidrs") all_ranges()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.