Add GCP cloud container details
- Run the below command to add the gcp cloud details
- viena add --configfile="< absolute path of the config json file
>"
- Below is the config file format
{
"actions": {
"meta": true,
"ai": [
"nsfw",
"blur",
"vice",
"weapons",
"ocr"
]
},
"results_endpoint":"http://restapiexample.com/postdata",
"container": {
"name": "test2",
"type": "gcp",
"bucket_name":"account2-bucket",
"config_json": {
"type": "service_account",
"project_id": "test-1307",
"private_key_id": "b8c29dfdfdfg6a9derta8da573ea3",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBAD ZBoroPAilabVpR9jOvZ7AvdvAQ5lb01Z1Q1tGoZRFGT0d7\new1qe6XXRb+NAzOTitcOyAMfj5LJjOPqeAES7fN2mohr2O2nj7BVz+l8FON5D5b0\nVT35klOMETIdnu6jeDj6+g==\n-----END PRIVATE KEY-----\n",
"client_email": "test-1307@appspot.gserviceaccount.com",
"client_id": "",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/kube-test-1307%40appspot.gserviceaccount.com"
}
}
}
results_endpoint Rest endpoint to post of your choice to the data
name Custom name of your choice to display in UI
type Type of the cloud storage (aws/gcp/azure)
bucket_name: Name of the bucket which you are adding
config_json: Refer this  link to download credential json and replace
the values.