vsphere.Provider
Explore with Pulumi AI
The provider type for the vsphere 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_unverified_ssl: Optional[bool] = None,
api_timeout: Optional[int] = None,
client_debug: Optional[bool] = None,
client_debug_path: Optional[str] = None,
client_debug_path_run: Optional[str] = None,
password: Optional[str] = None,
persist_session: Optional[bool] = None,
rest_session_path: Optional[str] = None,
user: Optional[str] = None,
vcenter_server: Optional[str] = None,
vim_keep_alive: Optional[int] = None,
vim_session_path: Optional[str] = None,
vsphere_server: Optional[str] = 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:vsphere
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:
- Password string
- The user password for vSphere API operations.
- User string
- The user name for vSphere API operations.
- Allow
Unverified boolSsl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- Api
Timeout int - API timeout in minutes (Default: 5)
- Client
Debug bool - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- Client
Debug stringPath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- Client
Debug stringPath Run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- Persist
Session bool - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- Rest
Session stringPath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- Vcenter
Server string - Vim
Keep intAlive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- Vim
Session stringPath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- Vsphere
Server string - The vSphere Server name for vSphere API operations.
- Password string
- The user password for vSphere API operations.
- User string
- The user name for vSphere API operations.
- Allow
Unverified boolSsl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- Api
Timeout int - API timeout in minutes (Default: 5)
- Client
Debug bool - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- Client
Debug stringPath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- Client
Debug stringPath Run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- Persist
Session bool - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- Rest
Session stringPath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- Vcenter
Server string - Vim
Keep intAlive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- Vim
Session stringPath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- Vsphere
Server string - The vSphere Server name for vSphere API operations.
- password String
- The user password for vSphere API operations.
- user String
- The user name for vSphere API operations.
- allow
Unverified BooleanSsl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- api
Timeout Integer - API timeout in minutes (Default: 5)
- client
Debug Boolean - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- client
Debug StringPath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- client
Debug StringPath Run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- persist
Session Boolean - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- rest
Session StringPath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- vcenter
Server String - vim
Keep IntegerAlive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- vim
Session StringPath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- vsphere
Server String - The vSphere Server name for vSphere API operations.
- password string
- The user password for vSphere API operations.
- user string
- The user name for vSphere API operations.
- allow
Unverified booleanSsl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- api
Timeout number - API timeout in minutes (Default: 5)
- client
Debug boolean - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- client
Debug stringPath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- client
Debug stringPath Run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- persist
Session boolean - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- rest
Session stringPath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- vcenter
Server string - vim
Keep numberAlive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- vim
Session stringPath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- vsphere
Server string - The vSphere Server name for vSphere API operations.
- password str
- The user password for vSphere API operations.
- user str
- The user name for vSphere API operations.
- allow_
unverified_ boolssl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- api_
timeout int - API timeout in minutes (Default: 5)
- client_
debug bool - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- client_
debug_ strpath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- client_
debug_ strpath_ run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- persist_
session bool - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- rest_
session_ strpath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- vcenter_
server str - vim_
keep_ intalive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- vim_
session_ strpath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- vsphere_
server str - The vSphere Server name for vSphere API operations.
- password String
- The user password for vSphere API operations.
- user String
- The user name for vSphere API operations.
- allow
Unverified BooleanSsl - If set, VMware vSphere client will permit unverifiable SSL certificates.
It can also be sourced from the following environment variable:
VSPHERE_ALLOW_UNVERIFIED_SSL
- api
Timeout Number - API timeout in minutes (Default: 5)
- client
Debug Boolean - govmomi debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG
- client
Debug StringPath - govmomi debug path for debug
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH
- client
Debug StringPath Run - govmomi debug path for a single run
It can also be sourced from the following environment variable:
VSPHERE_CLIENT_DEBUG_PATH_RUN
- persist
Session Boolean - Persist vSphere client sessions to disk
It can also be sourced from the following environment variable:
VSPHERE_PERSIST_SESSION
- rest
Session StringPath - The directory to save vSphere REST API sessions to
It can also be sourced from the following environment variable:
VSPHERE_REST_SESSION_PATH
- vcenter
Server String - vim
Keep NumberAlive - Keep alive interval for the VIM session in minutes
It can also be sourced from the following environment variable:
VSPHERE_VIM_KEEP_ALIVE
- vim
Session StringPath - The directory to save vSphere SOAP API sessions to
It can also be sourced from the following environment variable:
VSPHERE_VIM_SESSION_PATH
- vsphere
Server String - The vSphere Server name for vSphere API operations.
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
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.