A typescript sdk for accessing the SailPoint IdentityNow REST API's.
npm install sailpoint-api-client
You can create a local configuration file using the CLI tool or you can store your configuration in environment variables
- SAIL_BASE_URL
- SAIL_CLIENT_ID
- SAIL_CLIENT_SECRET
Simply import the API you want to work with, create a new configuration and get started.
import { Configuration, TransformsApi, TransformsApiCreateTransformRequest} from "sailpoint-api-client"
const createTransform = async () => {
let apiConfig = new Configuration()
let api = new TransformsApi(apiConfig)
let transform: TransformsApiCreateTransformRequest =
{
transform:
{
name: "Test Transform",
type: "dateFormat",
attributes: {
inputFormat: "MMM dd yyyy, HH:mm:ss.SSS",
outputFormat: "yyyy/dd/MM"
}
}
}
const val = await api.createTransform(transform)
console.log(val)
}
createTransform()