...

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

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

     1extend type Query {
     2    channels : [Channel] @hasRole( roles: [EDGE_SUPER_ADMIN])
     3 }
     4
     5extend type Mutation {
     6  """
     7  DeleteChannel deletes an unused channel from sql database.
     8  """
     9  deleteChannel(
    10    """
    11    channel ID of the channel to be deleted
    12    """
    13    channelID: UUID! 
    14  ): Boolean!
    15    @hasRole(
    16        roles: [EDGE_SUPER_ADMIN]
    17    )
    18  
    19  "rotate channel"
    20  rotateChannelNow(
    21      channelId: UUID!
    22      bannerEdgeId: UUID! @hasBannerAccess(field: "bannerEdgeId")
    23      ): Channel! 
    24      @hasRole(roles: [EDGE_SUPER_ADMIN, EDGE_ORG_ADMIN, EDGE_BANNER_ADMIN])
    25
    26  createChannel(payload: ChannelInput!): Channel!
    27    @hasRole(roles: [EDGE_SUPER_ADMIN])
    28
    29  # Creates a IAMPolicy based on the SA email provided 
    30  # Saves an entry to channels_service_accounts table
    31  # Sends a message to chariot to create a IAMPolicy
    32  createChannelIAM(channel_id: UUID!, saEmail: String!): ChannelIAMPolicy!
    33      @hasRole(roles: [EDGE_SUPER_ADMIN])
    34 }
    35

View as plain text