cloud-foundation-fabric/examples/cloud-operations/binauthz/image
Miren Esnaola 2e9fdea1a4 Binary authorization module and example 2022-06-17 16:09:12 +02:00
..
.dockerignore Binary authorization module and example 2022-06-17 16:09:12 +02:00
.gitignore Binary authorization module and example 2022-06-17 16:09:12 +02:00
Dockerfile Binary authorization module and example 2022-06-17 16:09:12 +02:00
README.md Binary authorization module and example 2022-06-17 16:09:12 +02:00
cloudbuild.yaml Binary authorization module and example 2022-06-17 16:09:12 +02:00
index.js Binary authorization module and example 2022-06-17 16:09:12 +02:00
package-lock.json Binary authorization module and example 2022-06-17 16:09:12 +02:00
package.json Binary authorization module and example 2022-06-17 16:09:12 +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