GCPのcloudfunctionを使ってBigQueryのScheduled Queryに接続してlistを表示させようとしています。
チュートリアルにある下記のコードを使ったのですが、
python
from google.cloud import bigquery from google.cloud import bigquery_datatransfer def main(event, context): # Construct a BigQuery client object. transfer_client = bigquery_datatransfer.DataTransferServiceClient() project_id = "my-project" parent = transfer_client.common_project_path(project_id) configs = transfer_client.list_transfer_configs(parent=parent) print("Got the following configs:") for config in configs: print(f"\tID: {config.name}, Schedule: {config.schedule}")
下記のようにlocationがusのものしか取得できません。asia-northeast1のlistを取得するにはどのように上記のコードを変更すればよろしいでしょうか
Cloufunctionのリージョンをasia-northeast1で実施しております。
D: projects/111111111111111/locations/us/transferConfigs/6146f076-0000-20e1-xxxxxxxxxxx , Schedule: every day 16:00
まだ回答がついていません
会員登録して回答してみよう