Skip to main content

Update Provider

Update Provider updates a provider config in Guardian

Path Parameters
    id string required
Query Parameters
    dryRun boolean
Request Body required
    type string
    urn string
    labels object
    property name* string
    credentials
    appeal object
    allowPermanentAccess boolean
    allowActiveAccessExtensionIn string
    resources object[]
  • Array [
  • type string
    policy object
    id string
    version int32
    roles object[]
  • Array [
  • id string
    name string
    description string
    permissions undefined[]
  • ]
  • filter string
  • ]
  • allowedAccountTypes string[]
    parameters object[]
  • Array [
  • key string
    label string
    required boolean
    description string
  • ]
Responses

A successful response.


Schema
    provider object
    id string
    type string
    urn string
    config object
    type string
    urn string
    labels object
    property name* string
    credentials
    appeal object
    allowPermanentAccess boolean
    allowActiveAccessExtensionIn string
    resources object[]
  • Array [
  • type string
    policy object
    id string
    version int32
    roles object[]
  • Array [
  • id string
    name string
    description string
    permissions undefined[]
  • ]
  • filter string
  • ]
  • allowedAccountTypes string[]
    parameters object[]
  • Array [
  • key string
    label string
    required boolean
    description string
  • ]
  • createdAt date-time

    Creation time of the provider

    updatedAt date-time

    Last update time of the provider

PUT /v1beta1/providers/:id

Authorization

name: X-Auth-Emailtype: apiKeydescription: Email address of the userin: header

Request

Base URL
http://127.0.0.1:7400
apiKey
id — path required
dryRun — query
Body required
{
"type": "string",
"urn": "string",
"labels": {},
"credentials": {},
"appeal": {
"allowPermanentAccess": true,
"allowActiveAccessExtensionIn": "string"
},
"resources": [
{
"type": "string",
"policy": {
"id": "string",
"version": 0
},
"roles": [
{
"id": "string",
"name": "string",
"description": "string",
"permissions": [
null
]
}
],
"filter": "string"
}
],
"allowedAccountTypes": [
"string"
],
"parameters": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string"
}
]
}
curl / cURL
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/providers/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Auth-Email: <API_KEY_VALUE>' \
--data-raw '{
"type": "string",
"urn": "string",
"labels": {},
"credentials": {},
"appeal": {
"allowPermanentAccess": true,
"allowActiveAccessExtensionIn": "string"
},
"resources": [
{
"type": "string",
"policy": {
"id": "string",
"version": 0
},
"roles": [
{
"id": "string",
"name": "string",
"description": "string",
"permissions": [
null
]
}
],
"filter": "string"
}
],
"allowedAccountTypes": [
"string"
],
"parameters": [
{
"key": "string",
"label": "string",
"required": true,
"description": "string"
}
]
}'