createResource
Import a new resource into your organization.
Creates a manually-managed resource (origin: IMPORTED) such as cloud credentials,
a network configuration, or any other infrastructure output. The resource must
conform to the schema defined by the specified resource type.
mutation {
createResource(
organizationId: "my-org"
resourceTypeId: "aws-iam-role"
input: { name: "CI/CD Role", payload: { arn: "arn:aws:iam::123:role/ci" } }
) {
result { id name origin }
successful
messages { field message }
}
}
createResource(
organizationId: ID!
resourceTypeId: ID!
input: CreateResourceInput!
): ResourcePayload
Form Schema
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Arguments
createResource.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
createResource.resourceTypeId ● ID! non-null scalar {#resource-type-id}
The resource type this resource conforms to (e.g., aws-iam-role).
createResource.input ● CreateResourceInput! non-null input {#input}
Import a new resource with a name and optional payload conforming to the resource type's schema.