sales_tool/api-gateway/create_api_dev.sh

17 lines
No EOL
401 B
Bash
Executable file

#!/bin/bash
# プロジェクトIDを設定
PROJECT_ID="datacom-poc"
# 使用するAPI名
API_NAME="sales-tool-api"
# プロジェクトを設定
gcloud auth application-default set-quota-project $PROJECT_ID
gcloud config set project $PROJECT_ID
# API Gatewayを作成
gcloud api-gateway apis create sales-tool-api \
echo "API Gateway '${API_NAME}' が作成され、有効化されました。"