AppInstance

This document describes the AppInstance library available in the JavaScript environment for app serivices.

Table of content

Object AppInstance
Properties serviceId
serviceDns
name
domain
password

Functions httpfiles
httpfile

AppInstance

The AppInstance object provides information about the configuration of the app instance.

serviceId

A string containing the ID of the app service.

serviceDns

A string containing the DNS name of the App Platform where the service is running. null, if no DNS name is configured.

name

A string containing the app instance name.

domain

A string containing the app instance domain.

password

A string containing the app instance password.

httpfiles

Lists all files that come with the app service inside the httpfiles.zip.

Return value

[string]An array containing the file names.
httpfile

Returns the content of an httpfile.

Parameters

string filenameThe filename.
bool binaryOptional, default false. Specifies, if the file content shall be returned as a string or an Uint8Array.

Return value

string/Uint8ArrayThe file content as a string or binary data, depending on the binary parameter.