Relay Proxy configurations

Create a new Relay Proxy config

POST
/api/v2/account/relay-auto-configs

Create a Relay Proxy config.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Request Body

application/json

name*string

A human-friendly name for the Relay Proxy configuration

policy*array<>

A description of what environments and projects the Relay Proxy should include or exclude. To learn more, read Write an inline policy.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/account/relay-auto-configs" \  -H "Content-Type: application/json" \  -d '{    "name": "Sample Relay Proxy config for all proj and env",    "policy": [      {        "actions": [          "*"        ],        "effect": "allow",        "resources": [          "proj/*:env/*"        ]      }    ]  }'
{  "_id": "12ab3c45de678910abc12345",  "_creator": {    "_links": {      "self": {        "href": "/api/v2/members/569f183514f4432160000007",        "type": "application/json"      }    },    "_id": "569f183514f4432160000007",    "firstName": "Ariel",    "lastName": "Flores",    "role": "admin",    "email": "ariel@acme.com"  },  "_access": {    "denied": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ],    "allowed": [      {        "action": "string",        "reason": {          "resources": [            "proj/*:env/*;qa_*:/flag/*"          ],          "notResources": [            "string"          ],          "actions": [            "*"          ],          "notActions": [            "string"          ],          "effect": "allow",          "role_name": "string"        }      }    ]  },  "name": "Relay Proxy Demo Config",  "policy": [    {      "resources": [        "proj/*:env/*;qa_*:/flag/*"      ],      "notResources": [        "string"      ],      "actions": [        "*"      ],      "notActions": [        "string"      ],      "effect": "allow"    }  ],  "fullKey": "string",  "displayKey": "7f30",  "creationDate": "1628001602644",  "lastModified": "1628001602644"}