Documentation ¶
Overview ¶
A Pulumi package for creating and managing routeros cloud resources.
Index ¶
- func PkgVersion() (semver.Version, error)
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
- func (o ProviderOutput) CaCertificate() pulumi.StringPtrOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) Hosturl() pulumi.StringPtrOutput
- func (o ProviderOutput) Password() pulumi.StringPtrOutput
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) Username() pulumi.StringPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Provider ¶
type Provider struct { pulumi.ProviderResourceState // Path to MikroTik's certificate authority file. CaCertificate pulumi.StringPtrOutput `pulumi:"caCertificate"` // URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local * // apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export // ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local Hosturl pulumi.StringPtrOutput `pulumi:"hosturl"` // Password for the MikroTik user. Password pulumi.StringPtrOutput `pulumi:"password"` // Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin Username pulumi.StringPtrOutput `pulumi:"username"` }
The provider type for the routeros 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](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { // Path to MikroTik's certificate authority file. CaCertificate pulumi.StringPtrInput // URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local * // apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export // ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local Hosturl pulumi.StringPtrInput // Whether to verify the SSL certificate or not. Insecure pulumi.BoolPtrInput // Password for the MikroTik user. Password pulumi.StringPtrInput // Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin Username pulumi.StringPtrInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) CaCertificate ¶
func (o ProviderOutput) CaCertificate() pulumi.StringPtrOutput
Path to MikroTik's certificate authority file.
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) Hosturl ¶
func (o ProviderOutput) Hosturl() pulumi.StringPtrOutput
URL of the MikroTik router, default is TLS connection to REST. * API: api[s]://host[:port] * api://router.local * apis://router.local:8729 * REST: https://host * https://router.local * router.local * 127.0.0.1 export ROS_HOSTURL=router.local or export MIKROTIK_HOST=router.local
func (ProviderOutput) Password ¶
func (o ProviderOutput) Password() pulumi.StringPtrOutput
Password for the MikroTik user.
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (ProviderOutput) Username ¶
func (o ProviderOutput) Username() pulumi.StringPtrOutput
Username for the MikroTik WEB/Winbox. export ROS_USERNAME=admin or export MIKROTIK_USER=admin