latestSwagger 2.02026-08-102194011.3 MB

602fc25ddd76

Managed Resources V2

CreateManagedResource Managed Resources V2

Called by external providers such as Terraform, this can 'claim' an incident.io resource as being managed externally.

post/v2/managed_resources

Request body

annotationsobject required

Annotations that track metadata about this resource

resource_idstring required

The ID of the related resource

resource_type'escalation_path' | 'schedule' | 'workflow' required

The type of the related resource

Example request

{
  "annotations": {
    "incident.io/terraform/version": "3.0.0"
  },
  "resource_id": "abc123",
  "resource_type": "schedule"
}

Response

OK response.

Example response

{
  "managed_resource": {
    "annotations": {
      "incident.io/terraform/version": "3.0.0"
    },
    "managed_by": "dashboard",
    "resource_id": "abc123",
    "resource_type": "schedule",
    "source_url": "https://github.com/my-company/infrastructure"
  }
}