cloud-foundation-fabric/blueprints/gke/binauthz/image
Julio Castillo 96257871a2 Move binautz to gke folder 2022-09-12 10:21:56 +02:00
..
.dockerignore Move binautz to gke folder 2022-09-12 10:21:56 +02:00
.gitignore Move binautz to gke folder 2022-09-12 10:21:56 +02:00
Dockerfile Move binautz to gke folder 2022-09-12 10:21:56 +02:00
README.md Move binautz to gke folder 2022-09-12 10:21:56 +02:00
cloudbuild.yaml Move binautz to gke folder 2022-09-12 10:21:56 +02:00
index.js Move binautz to gke folder 2022-09-12 10:21:56 +02:00
package-lock.json Move binautz to gke folder 2022-09-12 10:21:56 +02:00
package.json Move binautz to gke folder 2022-09-12 10:21:56 +02:00

README.md

Storage API

This application it is a RESTful API that let's you manage the Google Cloud Storage buckets available is a project. In order to do so the application needs to authenticate with a service account that has been granted the Storage Admin (roles/storage.admin) role.

Find below the operations that can be performed using it:

  • Get buckets in project

      curl -v http://localhost:3000/buckets
    
  • Get files in bucket

      curl -v http://localhost:3000/buckets/BUCKET_NAME
    
  • Create a bucket

      curl -v http://localhost:3000/buckets \
      -H'Content-Type: application/json' \
      -d  @- <<EOF
      {
          "name": "BUCKET_NAME"
      }
      EOF
    
  • Delete bucket

      curl -v -X DELETE http://localhost:3000/buckets/BUCKET_NAME