...

Text file src/edge-infra.dev/pkg/edge/api/graph/schema/terminal_queries.graphql

Documentation: edge-infra.dev/pkg/edge/api/graph/schema

     1extend type Query {
     2  "Get the terminal that matches the given ID"
     3  terminal(terminalId: String!): Terminal
     4    @hasRole(
     5      roles: [
     6        EDGE_BANNER_VIEWER
     7        EDGE_ORG_ADMIN
     8        EDGE_BANNER_ADMIN
     9        EDGE_BANNER_OPERATOR
    10      ]
    11    )
    12  "Get all terminals for a specific cluster edge ID, with a particular hostname, or for all clusters"
    13  terminals(
    14    clusterEdgeId: String @hasClusterAccess(field: "clusterEdgeId")
    15    terminalHostname: String
    16  ): [Terminal!]
    17    @hasRole(
    18      roles: [
    19        EDGE_BANNER_VIEWER
    20        EDGE_ORG_ADMIN
    21        EDGE_BANNER_ADMIN
    22        EDGE_BANNER_OPERATOR
    23      ]
    24    )
    25  "Get all terminals for a given banner"
    26  bannerTerminals(
    27    bannerEdgeId: String! @hasBannerAccess(field: "bannerEdgeId")
    28    terminalLabels: Boolean
    29  ): [Terminal!]
    30    @hasRole(
    31      roles: [
    32        EDGE_BANNER_VIEWER
    33        EDGE_ORG_ADMIN
    34        EDGE_BANNER_ADMIN
    35        EDGE_BANNER_OPERATOR
    36      ]
    37    )
    38  "Get activation code"
    39  activationCode(terminalId: String!): String!
    40    @hasRole(
    41      roles: [
    42        EDGE_BANNER_VIEWER
    43        EDGE_ORG_ADMIN
    44        EDGE_BANNER_ADMIN
    45        EDGE_BANNER_OPERATOR
    46      ]
    47    )
    48  "Fetch devices on a terminal"
    49  terminalDevices(terminalId: String!): TerminalDevices
    50    @hasRole(
    51      roles: [
    52        EDGE_BANNER_VIEWER
    53        EDGE_ORG_ADMIN
    54        EDGE_BANNER_ADMIN
    55        EDGE_BANNER_OPERATOR
    56      ]
    57    )
    58}
    59
    60extend type Mutation {
    61  "Create a terminal"
    62  createTerminal(newTerminal: TerminalCreateInput!): Terminal!
    63    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    64  "Delete a terminal"
    65  deleteTerminal(terminalId: String! @hasTerminalAccess(field: "terminalId")): Boolean!
    66    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    67  "Update a terminal"
    68  updateTerminal(terminal: TerminalIdInput!): Terminal!
    69    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    70  "Create a terminal interface"
    71  createTerminalInterface(
    72    terminalId: String!
    73    newTerminalInterface: TerminalInterfaceCreateInput!
    74  ): TerminalInterface!
    75    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    76  "Delete a terminal interface"
    77  deleteTerminalInterface(terminalInterfaceId: String!): Boolean!
    78    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    79  "Update a terminal interface"
    80  updateTerminalInterface(
    81    interface: TerminalInterfaceIdInput!
    82  ): TerminalInterface!
    83    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    84  "Create a terminal address"
    85  createTerminalAddress(
    86    terminalInterfaceId: String!
    87    newTerminalAddress: TerminalAddressCreateInput!
    88  ): TerminalAddress!
    89    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    90  "Delete a terminal address"
    91  deleteTerminalAddress(terminalAddressId: String!): Boolean!
    92    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    93  "Update a terminal address"
    94  updateTerminalAddress(address: TerminalAddressIdInput!): TerminalAddress!
    95    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    96  "Refresh activation code"
    97  refreshActivationCode(terminalId: String!): String!
    98    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
    99  "Create a terminal disk"
   100  createTerminalDisk(
   101    terminalId: String!
   102    newTerminalDisk: TerminalDiskCreateInput!
   103  ): TerminalDisk!
   104    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
   105  "Delete a terminal disk"
   106  deleteTerminalDisk(terminalDiskId: String!): Boolean!
   107    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
   108  "Update a terminal disk"
   109  updateTerminalDisk(terminalDisk: TerminalDiskIdInput!): TerminalDisk!
   110    @hasRole(roles: [EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN, EDGE_BANNER_OPERATOR])
   111}

View as plain text