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 2 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

Use this API name for staging:

export DATA_FUSION_API_NAME=staging-datafusion.sandbox.googleapis.com

Use this API name for autopush:

export DATA_FUSION_API_NAME=staging-datafusion.sandbox.googleapis.com

If you are unsure which versions are supported you can use this command to get a list of the supported versions:

curl -H "Authorization: Bearer $(gcloud auth print-access-token)" https://$DATA_FUSION_API_NAME/v1beta1/projects/$PROJECT/locations/$LOCATION/versions

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