Here's section in question:
|
### create_environment |
|
::: dbtc.client.admin._AdminClient.create_environment |
And an example section that provides payload
|
### create_environment_variables |
|
::: dbtc.client.admin._AdminClient.create_environment_variables |
|
|
|
**Examples:** |
|
=== "Python" |
|
|
|
Assuming that `client` is an instance of `dbtCloudClient` |
|
```py |
|
client.cloud.create_environment_variables(account_id, project_id, payload) |
|
``` |
|
|
|
=== "CLI" |
|
|
|
Assuming that `DBT_CLOUD_ACCOUNT_ID` and `DBT_CLOUD_PROJECT_ID` |
|
environment variables have been set. |
|
```bash |
|
dbtc create-credentials --payload='{"env_var": {"name": "DBT_ENV_TEST", "ids": [], "new_name": "DBT_ENV_TEST", "project": "foo", "{{development_environment_name}}": "dev_value", "{{deployment_environment_name}}": "deploy_value"}}' |
|
``` |
|
|
|
=== "Payload" |
|
|
|
```py |
|
payload = { |
|
'env_var': { |
|
'name': 'DBT_ENV_TEST', |
|
'ids': [], |
|
'new_name': 'DBT_ENV_TEST', |
|
'project': 'foo', |
|
'{{development_environment_name}}': 'dev_value', |
|
'{{deployment_environment_name}}': 'deploy_value' |
|
} |
|
} |
|
``` |
I'm trying it out now, so glad to fork/PR an example in if I figure it out, but leaving this here in the meantime
Here's section in question:
dbtc/docs/guide/cloud.md
Lines 377 to 378 in daf8f15
And an example section that provides payload
dbtc/docs/guide/cloud.md
Lines 422 to 454 in daf8f15
I'm trying it out now, so glad to fork/PR an example in if I figure it out, but leaving this here in the meantime