Skip to content

Credential

Credentials store keys and passwords that can be used in your automations.

Create a simple credential

If you want to create a credential via SDK, it's simple, you need to use the following method:

maestro.create_credential(label="test", key="test", value="test")
maestro.createCredential("testLabel", "testKey", "testValue");
await maestro.createCredential("test", "test", "test")
await maestro.createCredential("test", "test", "test")
await maestro.CreateCredentialAsync("testLabel", "testKey", "testValue");

Get credential on Maestro

To get the credential it is necessary to use the "get credential" method as follows:

credential = maestro.get_credential(label="test", key="test")
String credential = maestro.getCredential("testLabel", "testKey");
const credential = await maestro.getCredential("test", "test")
const credential: string = await maestro.getCredential("test", "test")
string credential = await maestro.GetCredentialAsync("testLabel", "testKey");

Update credential key value on Maestro

To update a key value for a given credential, use the update_credential method as follows:

maestro.update_credential(label="CredentialLabel", key="key1", value="new value")
// Not implemented yet
// Not implemented yet
// Not implemented yet
// Not implemented yet

Remove credential key on Maestro

To remove a key for a given credential, use the remove_credential method as follows:

maestro.remove_credential(label="CredentialLabel", key="key1")
// Not implemented yet
// Not implemented yet
// Not implemented yet
// Not implemented yet