Skip to content
Discussion options

You must be logged in to vote

Here is a minimal example for an S3 user. I assume you have AWS credentials from the environment. If not, you must also define the AWS credentials when creating the user

{
  "status": 1,
  "username": "user1",
  "password": "password",
  "permissions": {
    "/": [
      "*"
    ]
  },
  "filesystem": {
    "provider": 1,
    "s3config": {
      "bucket": "your bucket",
      "region": "your region",
      "key_prefix": "users/user1/"
    }
  }
}

A such user will be restricted to the users/user1 prefix.

Instead of reading the OpenAPI specification from the yaml file, I suggest opening http://<sftpgo_ip>:8080/openapi/swagger-ui/ in your browser and testing the API using swagger UI.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Shaltz
Comment options

@Shaltz
Comment options

@drakkan
Comment options

Answer selected by Shaltz
Comment options

You must be logged in to vote
8 replies
@drakkan
Comment options

@Shaltz
Comment options

@drakkan
Comment options

@Shaltz
Comment options

@marcorotella
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants