createEnvironment

Creates an Environment and returns the newly created Environment (or an error if creating the Environment fails).

Arguments

input
CreateEnvironmentInput
required

Returns

Non-null
EnvironmentResponse

modifyEnvironment

Modifies an Environment with the provided fields. If any of the optional fields are omitted, those properties will be unchanged on the Environment.

Arguments

input
ModifyEnvironmentInput
required

Returns

Non-null
EnvironmentResponse

deleteEnvironment

Deletes a Environment by ID and returns its ID if the Environment was deleted successfully.

Arguments

id
ID
required

createDataPoolAccessPolicy

Creates a Data Pool Access Policy for the specified Data Pool.

Arguments

input
CreateDataPoolAccessPolicyInput
required

Returns

Non-null
DataPoolAccessPolicyResponse

modifyDataPoolAccessPolicy

Modifies a Data Pool Access Policy with the provided unique name, description, columns and rows. If any of the optional arguments are omitted, those properties will be unchanged on the Data Pool Access Policy.

Arguments

input
ModifyDataPoolAccessPolicyInput
required

Returns

Non-null
DataPoolAccessPolicyResponse

deleteDataPoolAccessPolicy

Deletes a Data Pool Access Policy by ID and returns its ID if the Data Pool Access Policy was deleted successfully.

Arguments

id
ID
required

assignDataPoolAccessPolicyToApplication

Assign a Data Pool Access Policy to an Application.

The Data Pool Access Policy will restrict the Data Pool rows and columns that the Application can query. If the Data Pool has accessControlEnabled set to true, the Application must have a Data Pool Access Policy assigned in order to query the Data Pool.

An Application can have at most one Data Pool Access Policy assigned for a given Data Pool. If an Application already has a Data Pool Access Policy for a given Data Pool, and you call this mutation with another Data Pool Access Policy for the same Data Pool, the Application’s Data Pool Access Policy will be replaced.

Arguments

dataPoolAccessPolicy
ID
required
application
ID
required

unAssignDataPoolAccessPolicyFromApplication

Unassign a Data Pool Access Policy from an Application.

Once unassigned, whether the Application will be able to query the Data Pool is controlled by the Data Pool’s accessControlEnabled property. If accessControlEnabled is true, the Application will no longer be able to query the Data Pool. If accessControlEnabled is false, the Application will be able to query all data in the Data Pool, unrestricted.

Arguments

dataPoolAccessPolicy
ID
required
application
ID
required

createApplication

Creates a new Application and returns the newly created Application (or an error message if creating the Application fails).

Required scopes:

  • APPLICATION_ADMIN
mutation {
  createApplication(
    input: {
      uniqueName: "example_sample_application"
      description: "My dashboard app"
      scopes: [DATA_POOL_QUERY]
      propeller: P1_X_SMALL
    }
  ) {
    ... on ApplicationResponse {
      application {
        id
        uniqueName
      }
    }
    ... on FailureResponse {
      error {
        code
        message
      }
    }
  }
}

Arguments

input
createApplicationInput
required

Returns

Nullable
ApplicationOrFailureResponse

modifyApplication

Modifies an Application with the provided unique name, description, Propeller, and scopes. If any of the optional arguments are omitted, those properties will be unchanged on the Application.

Arguments

input
modifyApplicationInput
required

Returns

Nullable
ApplicationOrFailureResponse

deleteApplication

Deletes an Application by ID and returns its ID if the Application was deleted successfully.

Arguments

id
ID
required

deleteApplicationByName

Deletes an Application by unique name and returns its ID if the Application was deleted successfully.

Arguments

uniqueName
String
required

createSnowflakeDataSource

Creates a new Data Source from the given Snowflake database using the specified Snowflake account, warehouse, schema, username, and role.

Returns the newly created Data Source (or an error message if creating the Data Source fails).

Arguments

input
createSnowflakeDataSourceInput
required

Returns

Nullable
DataSourceOrFailureResponse

modifySnowflakeDataSource

Modifies a Data Source with the provided unique name, description, and connection settings. If any of the optional arguments are omitted, those properties will be unchanged on the Data Source.

Arguments

input
modifySnowflakeDataSourceInput
required

Returns

Nullable
DataSourceOrFailureResponse

reconnectDataSource

Attempts to reconnect a Data Source. The mutation then returns the Data Source object.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataSource

introspectTables

Introspects the tables in a Data Source.

Returns the tables along with when they were last cached from the Data Source.

Arguments

input
idOrUniqueName
required

Returns

Nullable
TableIntrospection

testDataSource

Tests that Propel can actually connect to the data warehouse. Updates the status.

Arguments

input
idOrUniqueName
required

Returns

Nullable
DataSourceOrFailureResponse

deleteDataSource

Deletes a Data Source by ID and returns its ID if the Data Source was deleted successfully.

Arguments

id
ID
required

deleteDataSourceByName

Deletes a Data Source by unique name and returns its ID if the Data Source was deleted successfully.

Arguments

uniqueName
String
required

createDataPoolV2

Creates a new Data Pool.

Returns the newly created Data Pool or an error message if it fails.

mutation {
  createDataPoolV2(input: {
    dataSource: "DSOXXXXX"
    table: "tacosoft_sales_analytics"
    timestamp: { columnName: "timestamp" }
    columns: [
      {
        columnName: "timestamp",
        type: TIMESTAMP,
        isNullable: true
      },
      {
        columnName: "order_id",
        type: STRING,
        isNullable: true
      },
      {
        columnName: "taco_name",
        type: STRING,
        isNullable: true
      },
      {
        columnName: "toppings",
        type: JSON,
        isNullable: true
      },
      {
        columnName: "quantity",
        type: INT32,
        isNullable: true
      },
      {
        columnName: "taco_unit_price",
        type: INT32,
        isNullable: true
      },
      {
        columnName: "taco_total_price",
        type: INT32,
        isNullable: true
      }
    ]
  }) {
  dataPool {
    id
    uniqueName
    tableSettings {
      orderBy
      engine {
        ... on MergeTreeTableEngine {
          type
        }
        ... on ReplacingMergeTreeTableEngine {
          type
          ver
        }
        ... on SummingMergeTreeTableEngine {
          type
          columns
        }
        ... on AggregatingMergeTreeTableEngine {
          type
        }
        ... on PostgreSqlTableEngine {
          type
        }
      }
    }
  }
}
}

Arguments

input
CreateDataPoolInputV2
required

Returns

Nullable
DataPoolResponse

modifyDataPool

Modifies a Data Pool with the provided unique name, description, and data retention time. If any of the optional arguments are omitted, those properties will be unchanged on the Data Pool.

Arguments

input
modifyDataPoolInput
required

Returns

Nullable
DataPoolOrFailureResponse

retryDataPoolSetup

Retries to set up the Data Pool identified by the given ID.

Arguments

id
ID
required

Returns

Nullable
DataPool