resource
Fetch a single resource by its unique identifier.
Returns the full resource record including its origin, resource type, and timestamps.
resource(
organizationId: ID!
id: ID!
): Resource
Arguments
resource.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
resource.id ● ID! non-null scalar {#id}
The resource's unique identifier.
Type
Resource object
A cloud credential, database connection string, network configuration, or other infrastructure output produced by (or imported into) Massdriver.
Resources are the connective tissue between instances. When an instance is deployed, it produces resources as outputs. Other instances can consume those resources as inputs, creating a dependency graph of your infrastructure.
Resources have two origins:
- Imported — created directly through the API (e.g., uploading existing AWS credentials). You have full CRUD control over these resources.
- Provisioned — created automatically when an instance is deployed. These are read-only and managed entirely by the owning instance's lifecycle.