Skip to content

gcp create-bucket

Create bucket

Description

create bucket in cloud storage

Synopsis

gcp create-bucket
    [--site <site>]
    [<name>]
    [--project <project>]
    [--location <location>]
    [--labels <labels>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

name - (string)

     Bucket name to create metric
     Example: "bucket-1"
     Default: _None_      Attributes: optional

project - (string)

     Project name to create bucket
     Example: --project "project-1"
     Default: _None_      Attributes: optional

location - (string)

     Location of the bucket
     Example: --location "US"
     Default: US      Attributes: optional

labels - (string)

     Labels are the bucket's labels.
     Example: --labels "{"owner":"user1"}"
     Default: _None_      Attributes: optional

Examples

gcp create-bucket "bucket-1" --project "project-1" --labels "{"owner":"user1"}"

Access Control

To use this command, you need access to the following:

Field Value
Action "create"
Service Type "gcp"
Service Instance
Namespace
Object Type "bucket"
Object ID name

Please see Access Control for details.