netbox.Provider
Explore with Pulumi AI
The provider type for the netbox package. By default, resources use package-wide configuration
settings, however an explicit Provider
instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args: ProviderArgs, opts?: CustomResourceOptions);
@overload
def Provider(resource_name: str,
args: ProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_insecure_https: Optional[bool] = None,
api_token: Optional[str] = None,
headers: Optional[Mapping[str, str]] = None,
request_timeout: Optional[float] = None,
server_url: Optional[str] = None,
skip_version_check: Optional[bool] = None,
strip_trailing_slashes_from_url: Optional[bool] = None)
func NewProvider(ctx *Context, name string, args ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs args, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:netbox
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Provider resource accepts the following input properties:
- Api
Token string - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - Server
Url string - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - Allow
Insecure boolHttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - Headers Dictionary<string, string>
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - Request
Timeout double - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - Skip
Version boolCheck - Strip
Trailing boolSlashes From Url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
- Api
Token string - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - Server
Url string - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - Allow
Insecure boolHttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - Headers map[string]string
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - Request
Timeout float64 - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - Skip
Version boolCheck - Strip
Trailing boolSlashes From Url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
- api
Token String - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - server
Url String - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - allow
Insecure BooleanHttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - headers Map<String,String>
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - request
Timeout Double - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - skip
Version BooleanCheck - strip
Trailing BooleanSlashes From Url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
- api
Token string - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - server
Url string - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - allow
Insecure booleanHttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - headers {[key: string]: string}
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - request
Timeout number - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - skip
Version booleanCheck - strip
Trailing booleanSlashes From Url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
- api_
token str - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - server_
url str - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - allow_
insecure_ boolhttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - headers Mapping[str, str]
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - request_
timeout float - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - skip_
version_ boolcheck - strip_
trailing_ boolslashes_ from_ url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
- api
Token String - Netbox API authentication token. Can be set via the
NETBOX_API_TOKEN
environment variable. - server
Url String - Location of Netbox server including scheme (http or https) and optional port. Can be set via the
NETBOX_SERVER_URL
environment variable. - allow
Insecure BooleanHttps - Flag to set whether to allow https with invalid certificates. Can be set via the
NETBOX_ALLOW_INSECURE_HTTPS
environment variable. Defaults tofalse
. - headers Map<String>
- Set these header on all requests to Netbox. Can be set via the
NETBOX_HEADERS
environment variable. - request
Timeout Number - Netbox API HTTP request timeout in seconds. Can be set via the
NETBOX_REQUEST_TIMEOUT
environment variable. - skip
Version BooleanCheck - strip
Trailing BooleanSlashes From Url - If true, strip trailing slashes from the
server_url
parameter and print a warning when doing so. Note that using trailing slashes in theserver_url
parameter will usually lead to errors. Can be set via theNETBOX_STRIP_TRAILING_SLASHES_FROM_URL
environment variable. Defaults totrue
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netbox
Terraform Provider.