Skip to main content

EnvironmentDefaultResource

A resource referenced by an environment default.

This represents the actual cloud resource (e.g., a VPC or DNS zone) that has been designated as the default for its resource type within an environment.

graphql
type EnvironmentDefaultResource {
id: ID!
name: String!
resourceType: ResourceType
origin: ResourceOrigin!
instance: Instance
instanceAccessGroups(
sort: GroupsSort
cursor: Cursor
): GroupsPage
alphaInstanceOncall: Map
}

Fields​

EnvironmentDefaultResource.id ● ID! non-null scalar {#id}​

The resource's unique identifier.

EnvironmentDefaultResource.name ● String! non-null scalar {#name}​

Human-readable name of the resource.

EnvironmentDefaultResource.resourceType ● ResourceType object {#resource-type}​

The resource type (e.g., massdriver/aws-vpc) that this resource conforms to.

EnvironmentDefaultResource.origin ● ResourceOrigin! non-null enum {#origin}​

How this resource was created. Determines whether it can be modified through the API.

EnvironmentDefaultResource.instance ● Instance object {#instance}​

The instance whose deployment produced this resource.

Null for imported resources. For provisioned resources, this is the instance that owns the resource's lifecycle — updating or decommissioning the instance will update or remove the resource.

Also null when you cannot view the project that contains the instance. You can see a resource from another project through a grant, a resource:view policy, or a dependency of an instance you can view; the instance that produced it stays hidden.

EnvironmentDefaultResource.instanceAccessGroups ● GroupsPage object {#instance-access-groups}​

The groups whose members can view instance.

Null for imported resources. You can read this field even when you cannot view the project that contains the instance. When instance is null for you, ask a member of one of these groups for access.

EnvironmentDefaultResource.instanceAccessGroups.sort ● GroupsSort input {#environment-default-resource-instance-access-groups-sort}​

Sort field and direction. Defaults to name ascending.

EnvironmentDefaultResource.instanceAccessGroups.cursor ● Cursor input {#environment-default-resource-instance-access-groups-cursor}​

Pagination cursor returned from a previous response to fetch the next page.

EnvironmentDefaultResource.alphaInstanceOncall ● Map scalar {#alpha-instance-oncall}​

Alpha: this API can change or be removed at any time, without notice.

The people on call for the environment that contains the instance that produced this resource. The value is that environment's md/v1/oncall stash entry, in the shape of the environment.oncall widget in alphaWidgetCatalog: an optional title and a list of entries, each with an optional name, image_url, email, and handles.

Null for imported resources and when the environment has no current on-call list. Anyone with resource:view on this resource can read this field, even without access to the project that contains the instance, so they know whom to contact.

Member Of​

EnvironmentDefault object