Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This article can be used to create a CDF instance in autopush, staging or prod with a specific version other than the default.

Before you begin

Update and set these environment variables. This uses the Data Fusion API name for prod:

export DATA_FUSION_API_NAME=datafusion.googleapis.com
export PROJECT=sample-project
export LOCATION=us-west1
export INSTANCE_ID=sample-instance
export INSTANCE_TYPE=BASIC
export VERSION=6.1.1

Create the instance

Run this command to create the instance.

curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json" https://$DATA_FUSION_API_NAME/v1beta1/projects/$PROJECT/locations/$LOCATION/instances?instanceId=$INSTANCE_ID -X POST -d '{"description": "CDF instance created through REST.", "type": "$INSTANCE_TYPE", "version":"$VERSION"}'

  • No labels