Skip to main content

apps_v2

Creates, updates, deletes, gets or lists an apps_v2 resource.

Overview​

Nameapps_v2
TypeResource
Idsumologic.apps.apps_v2

Fields​

The following fields are returned by SELECT queries:

Information about the requested app.

NameDatatypeDescription
base_urlstring (url)URL prefix for where the app is stored. (example: https:​//some_bucket.s3.amazonaws.com/path/to/app/version/) (wire: baseUrl)
configstring (byte)Content of the config YAML file, as Base64-encoded string.
filesobjectContent of various files part of app package, as Base64-encoded string.
manifeststring (byte)Content of the manifest YAML file, as Base64-encoded string.
readmestring (byte)Content of the README markdown file, as Base64-encoded string.
uuidstring (uuid)UUID of the app. (example: ceb7fac5-1127-4a04-a5b8-2e49190be3d5)
versionstringVersion of the app. (example: 1.0.0)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectuuid, regionversionGet details about an app with the given UUID and version. The details include:<br /><br /> 1. The base URL for all the resource for the app.<br /> 2. The app manifest
listselectregionname, authorList all apps from the App Catalog.
installexecuuid, regionSchedule an asynchronous job to install the app with the given UUID and version from the App Catalog. The app will be installed in 'Installed Apps' folder in the Content Library.<br /><br />You get back an identifier of asynchronous job in response to this endpoint. You can then use the app install status API to get the status of the installation request. See Asynchronous-Request section for more details on how to work with asynchronous request.
uninstallexecuuid, regionSchedule an asynchronous job to uninstall app with the given UUID.<br /><br />You get back an identifier of asynchronous job in response to this endpoint. You can then use the app uninstall status API to get the status of the uninstallation request. See Asynchronous-Request section for more details on how to work with asynchronous request.
upgradeexecuuid, regionSchedule an asynchronous job to upgrade the app with the given UUID and version from the App Catalog. The app will be installed in 'Installed Apps' folder in the Content Library.<br /><br />You get back an identifier of asynchronous job in response to this endpoint. You can then use the app upgrade status API to get the status of the upgrade request. See Asynchronous-Request section for more details on how to work with asynchronous request.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)
uuidstringUUID of the app to upgrade. (example: ceb7fac5-1127-4a04-a5b8-2e49190be3d5)
authorstringAuthor of the app. (example: Sumo%20Logic)
namestringName of the app. (example: AWS%20CloudTrail)
versionstringVersion of the app. The latest version is used if this is omitted or specified as "latest". (example: 1.0.0)

SELECT examples​

Get details about an app with the given UUID and version. The details include:<br /><br /> 1. The base URL for all the resource for the app.<br /> 2. The app manifest

SELECT
base_url,
config,
files,
manifest,
readme,
uuid,
version
FROM sumologic.apps.apps_v2
WHERE uuid = '{{ uuid }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
AND version = '{{ version }}'
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Schedule an asynchronous job to install the app with the given UUID and version from the App Catalog. The app will be installed in 'Installed Apps' folder in the Content Library.<br /><br />You get back an identifier of asynchronous job in response to this endpoint. You can then use the app install status API to get the status of the installation request. See Asynchronous-Request section for more details on how to work with asynchronous request.

EXEC sumologic.apps.apps_v2.install
@uuid='{{ uuid }}' --required,
@region='{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
@@json=
'{
"version": "{{ version }}",
"parameters": "{{ parameters }}"
}'
;