Get project resource

projectResource(input: ProjectResourceInput!): ProjectResource

Requires project.resources.read.

Arguments

ArgumentTypeRequired
inputProjectResourceInput!Yes

Input fields

input

ProjectResourceInput

FieldTypeRequired
projectReferenceStringNo
resourceIdString!Yes
sourceTargetKindStringNo
runtimeTargetKindStringNo
targetEnvironmentIdIDNo
targetBranchIdIDNo

Response

Returns ProjectResource. Open the type for its fields and nested types.

FieldType
idID!
patternString!
descriptionString!
titleString
sourcePathString!
editModeString!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ProjectResource($input: ProjectResourceInput!) {
  projectResource(input: $input) {
    id
    description
    editMode
    pattern
    sourcePath
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "resourceId": "00000000-0000-4000-8000-000000000001"
  }
}