resources

Bulk updates a list of resources.

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Request body

Example request

{
  "resources": [
    {
      "resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "name": "my-mongo-db",
      "description": "This resource represents AWS IAM role \"SupportUser\".",
      "admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
      "max_duration": 120,
      "require_manager_approval": false,
      "require_support_ticket": false
    },
    {
      "resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
      "name": "Admin Role",
      "description": "This resource represents GCP project \"app-demo\".",
      "admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
      "max_duration": 360,
      "require_manager_approval": false,
      "require_support_ticket": true
    }
  ]
}

Response

The resulting updated resource infos.

Example response

{
  "resources": [
    {
      "resource_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "name": "my-mongo-db",
      "description": "This resource represents AWS IAM role \"SupportUser\".",
      "admin_owner_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
      "max_duration": 120,
      "require_manager_approval": false,
      "require_support_ticket": false
    },
    {
      "resource_id": "99d0b81d-14be-4cf6-bd27-348b4af1d11b",
      "name": "Admin Role",
      "description": "This resource represents GCP project \"app-demo\".",
      "admin_owner_id": "4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3",
      "max_duration": 360,
      "require_manager_approval": false,
      "require_support_ticket": true
    }
  ]
}

Changes

    • info

      added the new optional request property //

    • info

      request property // deprecated

    • info

      added the optional property // to the response with the status

    • info

      response property resources/items/configuration_template_id deprecated

    • info

      added the new optional request property //////

    • info

      added the new optional request property /////

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ///// to the response with the status