"describeCodePackages"
JSON ADMIN "describeCodePackages"
action returns all the current information about specified code packages
The "describeCodePackages" action returns all the current information about the specified code package names including source code and package properties.
Use "describeCodePackageHistory" to retrieve information about previous versions of a code package.
Request examples
{ "api": "admin", "action": "describeCodePackages", "params": { "databaseName": "faircom", "ownerName": "admin", "codeNames": [ "convertTemperature" ], "codeFormat": "utf8 | base64 | hex | byteArray | json" }, "authToken": "replaceWithAuthTokenFromCreateSession" }
{ "api": "admin", "action": "describeCodePackages", "params": { "codeNames": ["convertTemperature"] }, "authToken": "replaceWithAuthTokenFromCreateSession" }
Use the describeCodePackages API action to return all the current information about the specified code packages
Property | Description | Default | Type | Limits (inclusive) |
---|---|---|---|---|
specifies the name of the database | Defaults to the session's | string | ||
specifies the name of the owner | Defaults to the session's | string | ||
specifies the name of the code package | Required - No default value | string | ||
specifies the encoding of the code in the code property |
| string |
|
"databaseName"
is an optional string specifying the database name of the code package. It defaults to the session's "defaultDatabaseName"
property when omitted or set to null
. The package's unique identifier is the combination of "databaseName"
, "ownerName"
, and "codeName"
.
"ownerName"
is an optional string specifying the account name that owns the code package. It defaults to the session's "defaultOwnerName"
property when omitted or set to null
. The package's unique identifier is the combination of "databaseName"
, "ownerName"
, and "codeName"
.
"codeName"
is a required string containing the user-defined name for the code package. The package's unique identifier is the combination of "databaseName"
, "ownerName"
, and "codeName"
.
"codeFormat"
is an optional string that specifies the encoding of code in the code property. You must encode you code to embed it in a JSON string. "codeFormat" currently only supports the "utf8"
encoding, requiring you to use JSON rules to escape problem characters in your code with the \
backslash character, such as \n
.