Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for asana

Jobs that use the asana adaptor may require authentication. A "credential" for the asana adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"token": "sample-tokenyWSJdXBACMLLWMNGgADFA",
"workspaceGid": "12345"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"title": "API Version",
"type": "string",
"description": "The API version",
"examples": [
"1.0"
],
"default": "1.0"
},
"token": {
"title": "Token",
"type": "string",
"description": "The API token",
"writeOnly": true,
"examples": [
"sample-tokenyWSJdXBACMLLWMNGgADFA"
]
},
"workspaceGid": {
"title": "Workspace GID",
"type": "string",
"description": "Globally unique identifier for the workspace or organization.",
"examples": [
"12345"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"token",
"workspaceGid"
]
}