PUT AWS IAM Role

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Assigns an AWS IAM role to a user.

Since: Artifactory 7.x.x

Security: Requires a valid admin token

Usage: PUT api/v1/aws/iam_role/ {JSON with JFrog user name and the AWS IAM role Configuration}

The request must have the following information.

  • username: The JFrog Platform user name.

  • iam_role: The AWS IAM role. Must follow the regex, "^arn:aws:iam::\\d{12}:role/[\\w+=,.@:-]+$".

Produces: text/plain

Sample Usage

curl -X PUT -H "Content-type: application/json" \
     -H "Authorization: Bearer cOENUdUxv" \ 
     https://example.jfrog.io/access/api/v1/aws/iam_role -d \
'{"username": "jfrog-aws", "iam_role": "arn:aws:iam::000000000:role/example"}'