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:

installPackageFromRegistryV2(InstallPackageFromRegistryInput: InstallPackageFromRegistryInput!): InstallPackageFromRegistryResult!

Given Datatypes

For the given datatype, InstallPackageFromRegistryInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: InstallPackageFromRegistryInput

ParameterTypeRequired[a]DefaultDescription
viewNameRepoOrViewNameyes The name of the view. This is a scalar value.
packageIdVersionedPackageSpecifieryes Unique identifier of the package. This is a scalar value.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


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

ParameterTypeRequired[a]DefaultDescription
packagePackage2yes The package from which to install (see Package2 Table).

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.