API Stability Long-Term

The installPackageFromRegistryV2() GraphQL mutation field is used to install a package in a specific view in LogScale.

For more information on packages, see the Packages documentation page.

Syntax

Below is the syntax for the installPackageFromRegistryV2() mutation field:

graphql
installPackageFromRegistryV2(
     InstallPackageFromRegistryInput: InstallPackageFromRegistryInput!
   ): InstallPackageFromRegistryResult!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  installPackageFromRegistryV2 (
    InstallPackageFromRegistryInput: {
        viewName: "humio",
        packageId: "crowdstrike/logscale-slack@1.0.0",
        queryOwnershipType: User }
  )
  { package {id, name} }
}

Given Datatypes

For InstallPackageFromRegistryInput, there are a few parameters. Below is a list of them along with a description of each:

Table: InstallPackageFromRegistryInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 28, 2025
queryOwnershipTypeQueryOwnershipTypeyesUserLong-TermThe query ownership type. See QueryOwnershipType.
packageIdVersionedPackageSpecifieryes Long-TermThe unique identifier of the package. VersionedPackageSpecifier. is a scalar value.
viewNameRepoOrViewNameyes Long-TermThe name of the view. RepoOrViewName. is a scalar value.

Returned Datatypes

The returned datatype InstallPackageFromRegistryResult has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: InstallPackageFromRegistryResult

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
packagePackage2yes Long-TermThe package from which to install. See Package2.