Datasource Credentials Set
datasource_credentials_setSwitches a Datastudio datasource to Service Account Credentials, using an explicit account or environment template, with a preview by default before applying the change.
Instructions
Switch a datasource to Service Account Credentials.
Without service_account, the DATASTUDIO_SERVICE_ACCOUNT_TEMPLATE environment variable names it ({project} = the BigQuery project the source runs in); with neither, the call is refused. datasource_get shows the current credentials. The editing user needs Service Account User on the account. Preview by default; the change is journaled and read back but not restorable, because owner's credentials belong to a person and cannot be replayed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasource_id": "<datasource_id>"
},
"name": "datasource_credentials_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| report_id | No | ||
| datasource_id | Yes | ||
| service_account | No | ||
| allow_shared_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||