create_connector {previsionio}R Documentation

Create a new connector of a supported type (among: "SQL", "FTP", "SFTP", "S3", "GCP"). If check_if_exist is enabled, the function will check if a connector with the same name already exists. If yes, it will return a message and the information of the existing connector instead of creating a new one.

Description

Create a new connector of a supported type (among: "SQL", "FTP", "SFTP", "S3", "GCP"). If check_if_exist is enabled, the function will check if a connector with the same name already exists. If yes, it will return a message and the information of the existing connector instead of creating a new one.

Usage

create_connector(
  project_id,
  type,
  name,
  host,
  port,
  username,
  password,
  google_credentials = NULL,
  check_if_exist = FALSE
)

Arguments

project_id

id of the project, can be obtained with get_projects().

type

connector type.

name

connector name.

host

connector host.

port

connector port.

username

connector username.

password

connector password.

google_credentials

google credentials JSON (for GCP only).

check_if_exist

boolean (FALSE by default). If TRUE, makes extra checks to see if a connector with the same name is already existing.

Value

list - parsed content of the connector.


[Package previsionio version 11.7.0 Index]