Adobe I/O Cloud Manager Library
npm install @adobe/aio-lib-cloudmanager




JavaScript SDK wrapping the Adobe Cloud Manager API.
``bash`
$ npm install @adobe/aio-lib-cloudmanager
`javascript
const sdk = require('@adobe/aio-lib-cloudmanager')
async function sdkTest() {
//initialize sdk
const client = await sdk.init('
}
`
2) Call methods using the initialized SDK
`javascript
const sdk = require('@adobe/aio-lib-cloudmanager')
async function sdkTest() {
// initialize sdk
const client = await sdk.init('
// call methods
try {
// get... something
const result = await client.listPrograms()
console.log(result)
} catch (e) {
console.error(e)
}
}
`
This class provides methods to call your Cloud Manager APIs.
Before calling any method initialize the instance by calling the init method on it
with valid values for orgId, apiKey and accessToken
PipelineExecutionStepStateFind the first non-finished step in a pipeline execution
PipelineExecutionStepStateFind the first waiting step in a pipeline execution
Promise.<CloudManagerAPI>Returns a Promise that resolves with a new CloudManagerAPI object.
objectA lightweight representation of a Program
objectA representation of a CI/CD Pipeline
objectDescribes a phase of a pipeline
objectA representation of an execution of a CI/CD Pipeline.
objectDescribes the status of a particular pipeline execution step for display purposes
objectobjectA representation of a specific metric generated by a CI/CD Pipeline step.
objectA representation of an Environment known to Cloud Manager.
objectA named value than can be set on an Environment or Pipeline
objectA representation of a ContentSet custom
objectThe Content Flow Execution
objectobjectDescribes an IP Allowed List Binding
objectDescribes an IP Allowed List
objectOptions to the listPipeline function
objectobject method on it
with valid values for orgId, apiKey and accessTokenKind: global class
* CloudManagerAPI
* .orgId : string
* .apiKey : string
* .accessToken : string
* .baseUrl : string
* .addIpAllowlistBinding(programId, ipAllowlistId, environmentId, service) ⇒ Promise.<object>
* .advanceCurrentExecution(programId, pipelineId) ⇒ Promise.<object>
* .cancelContentFlow(programId, contentFlowId) ⇒ Promise.<object>
* .cancelCurrentExecution(programId, pipelineId) ⇒ Promise.<object>
* .createContentFlow(programId, environmentId, contentFlow) ⇒ Promise.<ContentFlow>
* .createContentSet(programId, contentSet) ⇒ Promise.<ContentSet>
* .createExecution(programId, pipelineId, mode) ⇒ Promise.<PipelineExecution>
* .createIpAllowlist(programId, name, cidrBlocks) ⇒ Promise.<IPAllowedList>
* .deleteContentSet(programId, contentSetId) ⇒ Promise.<object>
* .deleteEnvironment(programId, environmentId) ⇒ Promise.<object>
* .deleteIpAllowlist(programId, ipAllowlistId) ⇒ Promise.<object>
* .deletePipeline(programId, pipelineId) ⇒ Promise.<object>
* .deleteProgram(programId) ⇒ Promise.<object>
* .downloadLogs(programId, environmentId, service, name, days, outputDirectory) ⇒ Promise.<Array.<DownloadedLog>>
* .getContentFlow(programId, contentFlowId) ⇒ Promise.<ContentFlow>
* .getContentSet(programId, contentSetId) ⇒ Promise.<ContentSet>
* .getCurrentExecution(programId, pipelineId) ⇒ Promise.<PipelineExecution>
* .getDeveloperConsoleUrl(programId, environmentId) ⇒ Promise.<string>
* .getEnvironmentVariables(programId, environmentId) ⇒ Promise.<Array.<Variable>>
* .getExecution(programId, pipelineId, executionId) ⇒ Promise.<PipelineExecution>
* .getExecutionStepLog(programId, pipelineId, executionId, action, logFile, outputStream) ⇒ Promise.<object>
* .getPipelineVariables(programId, pipelineId) ⇒ Promise.<Array.<Variable>>
* .getQualityGateResults(programId, pipelineId, executionId, action) ⇒ Promise.<PipelineStepMetrics>
* .init(orgId, apiKey, accessToken, baseUrl) ⇒ Promise.<CloudManagerAPI>
* .invalidatePipelineCache(programId, pipelineId) ⇒ Promise.<object>
* .listAvailableLogOptions(programId, environmentId) ⇒ Promise.<Array.<LogOptionRepresentation>>
* .listContentFlows(programId) ⇒ Promise.<Array.<ContentFlow>>
* .listContentSets(programId) ⇒ Promise.<Array.<ContentSet>>
* .listEnvironments(programId) ⇒ Promise.<Array.<Environment>>
* .listExecutions(programId, pipelineId, limit) ⇒ Promise.<Array.<PipelineExecution>>
* .listIpAllowlists(programId) ⇒ Promise.<IPAllowedList>
* .listPipelines(programId, options) ⇒ Promise.<Array.<Pipeline>>
* .listPrograms() ⇒ Promise.<Array.<EmbeddedProgram>>
* .removeIpAllowlistBinding(programId, ipAllowlistId, environmentId, service) ⇒ Promise.<object>
* .setEnvironmentVariables(programId, environmentId, variables) ⇒ Promise.<object>
* .setPipelineVariables(programId, pipelineId, variables) ⇒ Promise.<object>
* ~~.startExecution(programId, pipelineId, mode) ⇒ Promise.<string>~~
* .tailExecutionStepLog(programId, pipelineId, action, logFile, outputStream) ⇒ Promise.<PipelineExecutionStepState>
* .updateContentSet(programId, contentSetId, updatedContentSet) ⇒ Promise.<ContentSet>
* .updateIpAllowlist(programId, ipAllowlistId, cidrBlocks) ⇒ Promise.<object>
* .updatePipeline(programId, pipelineId, changes) ⇒ Promise.<Pipeline>
$3
The organization idKind: instance property of CloudManagerAPI
$3
The api key from your integrationKind: instance property of CloudManagerAPI
$3
The access token from your integrationKind: instance property of CloudManagerAPI
$3
The base URL for the API endpointKind: instance property of CloudManagerAPI
$3
Bind an IP Allow List to an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| ipAllowlistId | string | the allow list id |
| environmentId | string | the environment id |
| service | string | the service name |
$3
Advance current executionKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
Cancel a content flow
Cancels an in progress flowKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| contentFlowId | string | the flow id |
$3
Cancel current executionKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
Create content Set Flow for environmentKind: instance method of CloudManagerAPI
Returns: Promise.<ContentFlow> - the created content flow representation
| Param | Type | Description |
| --- | --- | --- |
| programId | string | The program id |
| environmentId | string | The environment id |
| contentFlow | ContentFlow | The body of the contentFlow |
$3
Create a Content setKind: instance method of CloudManagerAPI
Returns: Promise.<ContentSet> - the created content set
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| contentSet | string | the body of the content set. |
$3
Create a new execution for a pipeline, returning the execution.Kind: instance method of CloudManagerAPI
Returns: Promise.<PipelineExecution> - the new execution
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| mode | string | the pipeline execution mode |
$3
Create IP Allow ListKind: instance method of CloudManagerAPI
Returns: Promise.<IPAllowedList> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| name | string | the name |
| cidrBlocks | Array.<string> | the CIDR blocks |
$3
Delete Content SetKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| contentSetId | string | the content set id |
$3
Delete an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
$3
Update the CIDR blocks of an IP Allow ListKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| ipAllowlistId | string | the allow list id |
$3
Delete a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy object
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
Delete a programKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
$3
Download log files from the environment to a specified directory.Kind: instance method of CloudManagerAPI
Returns: Promise.<Array.<DownloadedLog>> - the list of downloaded logs
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
| service | string | the service specification |
| name | string | the log name |
| days | number | the number of days |
| outputDirectory | string | the output directory |
$3
Get Content FlowKind: instance method of CloudManagerAPI
Returns: Promise.<ContentFlow> - the Content Flow
| Param | Type | Description |
| --- | --- | --- |
| programId | string | The program id |
| contentFlowId | string | the content flow id |
$3
Get Content SetKind: instance method of CloudManagerAPI
Returns: Promise.<ContentSet> - the content set
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| contentSetId | string | the content set id |
$3
Get the current execution for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<PipelineExecution> - the execution
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
Get the link to the developer consoleKind: instance method of CloudManagerAPI
Returns: Promise.<string> - the console url
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
$3
Get the list of variables for an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<Variable>> - the variables
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
$3
Get an execution for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<PipelineExecution> - the execution
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| executionId | string | the execution id |
$3
Write step log to an output stream.Kind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| executionId | string | the execution id |
| action | string | the action |
| logFile | string | the log file to select a non-default value |
| outputStream | object | the output stream to write to |
$3
Get the list of variables for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<Variable>> - the variables
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
Get the quality gate results for a pipeline stepKind: instance method of CloudManagerAPI
Returns: Promise.<PipelineStepMetrics> - the execution
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| executionId | string | the execution id |
| action | string | the action name |
$3
Initializes a CloudManagerAPI object and returns it.Kind: instance method of CloudManagerAPI
Returns: Promise.<CloudManagerAPI> - a CloudManagerAPI object
| Param | Type | Description |
| --- | --- | --- |
| orgId | string | the organization id |
| apiKey | string | the API key for your integration |
| accessToken | string | the access token for your integration |
| baseUrl | string | the base URL to access the API (defaults to https://cloudmanager.adobe.io) |
$3
Invalidate the cache for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy object
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
$3
List the log options available for an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<LogOptionRepresentation>> - the log options for the environment
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
$3
List content flows for programKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<ContentFlow>> - an array of content flows
| Param | Type | Description |
| --- | --- | --- |
| programId | string | The program id |
$3
List Content Sets for programKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<ContentSet>> - list of the content sets for the program
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
$3
List environments for a programKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<Environment>> - a list of environments
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
$3
List the most recent executions for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<Array.<PipelineExecution>> - the list of executions
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| programId | string | | the program id |
| pipelineId | string | | the pipeline id |
| limit | number | 20 | the maximum number of executions to return (defaults to 20) |
$3
List the program's defined IP Allow ListsKind: instance method of CloudManagerAPI
Returns: Promise.<IPAllowedList> - - the IP Allow Lists
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
$3
Obtain a list of pipelines for the target program.Kind: instance method of CloudManagerAPI
Returns: Promise.<Array.<Pipeline>> - an array of Pipelines
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| options | ListPipelineOptions | options |
$3
Obtain a list of programs for the target organization.Kind: instance method of CloudManagerAPI
Returns: Promise.<Array.<EmbeddedProgram>> - an array of Programs
$3
Unbind an IP Allow List from an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| ipAllowlistId | string | the allow list id |
| environmentId | string | the environment id |
| service | string | the service name |
$3
Set the variables for an environmentKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| environmentId | string | the environment id |
| variables | Array.<Variable> | the variables |
$3
Set the variables for a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| variables | Array.<Variable> | the variables |
$3
DeprecatedStart an execution for a pipeline, returning the url of the new execution
Kind: instance method of CloudManagerAPI
Returns: Promise.<string> - the execution url
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| mode | string | the pipeline execution mode |
$3
Tail step log to an output stream.Kind: instance method of CloudManagerAPI
Returns: Promise.<PipelineExecutionStepState> - the completed step state
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| action | string | the action |
| logFile | string | the log file to select a non-default value |
| outputStream | object | the output stream to write to |
$3
Update the content set definition.The operation is a PUT, so the entire body has to be provided.
Kind: instance method of CloudManagerAPI
Returns: Promise.<ContentSet> - the updated content set
| Param | Type | Description |
| --- | --- | --- |
| programId | string | The program id |
| contentSetId | string | The content set id |
| updatedContentSet | string | the body (JSON format) |
$3
Update the CIDR blocks of an IP Allow ListKind: instance method of CloudManagerAPI
Returns: Promise.<object> - a truthy value
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| ipAllowlistId | string | the allow list id |
| cidrBlocks | Array.<string> | the replacement CIDR blocks |
$3
Update a pipelineKind: instance method of CloudManagerAPI
Returns: Promise.<Pipeline> - the new pipeline definition
| Param | Type | Description |
| --- | --- | --- |
| programId | string | the program id |
| pipelineId | string | the pipeline id |
| changes | PipelineUpdate | the changes |
getCurrentStep(execution) ⇒ PipelineExecutionStepState
Find the first non-finished step in a pipeline executionKind: global function
Returns: PipelineExecutionStepState - the step state or a falsy object if all steps are finished
| Param | Type | Description |
| --- | --- | --- |
| execution | PipelineExecution | the execution |
getWaitingStep(execution) ⇒ PipelineExecutionStepState
Find the first waiting step in a pipeline executionKind: global function
Returns: PipelineExecutionStepState - the step state or a falsy object if no step is waiting
| Param | Type | Description |
| --- | --- | --- |
| execution | PipelineExecution | the execution |
init(orgId, apiKey, accessToken, baseUrl) ⇒ Promise.<CloudManagerAPI>
Returns a Promise that resolves with a new CloudManagerAPI object.Kind: global function
Returns: Promise.<CloudManagerAPI> - a Promise with a CloudManagerAPI object
| Param | Type | Description |
| --- | --- | --- |
| orgId | string | the organization id |
| apiKey | string | the API key for your integration |
| accessToken | string | the access token for your integration |
| baseUrl | string | the base URL to access the API (defaults to https://cloudmanager.adobe.io) |
EmbeddedProgram : object
A lightweight representation of a ProgramKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | Identifier of the program. Unique within the space. |
| name | string | Name of the program |
| enabled | boolean | Whether this Program has been enabled for Cloud Manager usage |
| tenantId | string | Tenant Id |
| status | string | Status of the program |
| createdAt | string | Created time |
| updatedAt | string | Date of last change |
Pipeline : object
A representation of a CI/CD PipelineKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | Identifier of the pipeline. Unique within the program. |
| programId | string | Identifier of the program. Unique within the space. |
| name | string | Name of the pipeline |
| trigger | string | How should the execution be triggered. ON_COMMIT: each time one or more commits are pushed and the Pipeline is idle then a execution is triggered. MANUAL: triggerd through UI or API. |
| status | string | Pipeline status |
| createdAt | string | Create date |
| updatedAt | string | Update date |
| lastStartedAt | string | Last pipeline execution start |
| lastFinishedAt | string | Last pipeline execution end |
| phases | Array.<PipelinePhase> | Pipeline phases in execution order |
| type | string | Pipeline type |
PipelinePhase : object
Describes a phase of a pipelineKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| name | string | Name of the phase |
| type | string | Type of the phase |
| repositoryId | string | Identifier of the source repository. The code from this repository will be build at the start of this phase. Mandatory if type=BUILD |
| branch | string | Name of the tracked branch or a fully qualified git tag (e.g. refs/tags/v1). Assumed to be
master if missing. |
| environmentId | string | Identifier of the target environment. Mandatory if type=DEPLOY |
| environmentType | string | Type of environment (for example stage or prod, readOnly = true) |
| steps | Array.<PipelineStep> | Steps to be included in the phase in execution order. Might be added or not, depending on permissions or configuration |PipelineExecution : object
A representation of an execution of a CI/CD Pipeline.Kind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | Pipeline execution identifier |
| programId | string | Identifier of the program. Unique within the space. |
| pipelineId | string | Identifier of the pipeline. Unique within the space. |
| artifactsVersion | string | Version of the artifacts generated during this execution |
| user | string | AdobeID who started the pipeline. Empty for auto triggered builds |
| status | string | Status of the execution |
| trigger | string | How the execution was triggered. |
| pipelineExecutionMode | string | The mode in which the execution occurred. EMERGENCY mode will skip certain steps and is only available to select AMS customers |
| createdAt | string | Timestamp at which the execution was created |
| updatedAt | string | Timestamp at which the status of the execution last changed |
| finishedAt | string | Timestamp at which the execution completed |
| pipelineType | string | Pipeline type |
PipelineExecutionStepState : object
Describes the status of a particular pipeline execution step for display purposesKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | |
| stepId | string | |
| phaseId | string | |
| action | string | Name of the action |
| repository | string | Target repository |
| branch | string | Target branch |
| environment | string | Target environment |
| environmentId | string | Target environment id |
| environmentType | string | Target environment type |
| startedAt | string | Timestamp at which the step state started running |
| finishedAt | string | Timestamp at which the step completed |
| commitId | string | Target commit id |
| details | object | Additional details of the step |
| status | string | Action status |
PipelineStepMetrics : object
Kind: global typedef
Properties| Name | Type | Description |
| --- | --- | --- |
| metrics | Array.<Metric> | metrics |
Metric : object
A representation of a specific metric generated by a CI/CD Pipeline step.Kind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | KPI result identifier |
| severity | string | Severity of the metric |
| passed | boolean | Whether metric is considered passed |
| override | boolean | Whether user override the failed metric |
| actualValue | string | Expected value for the metric |
| expectedValue | string | Expected value for the metric |
| comparator | string | Comparator used for the metric |
| kpi | string | KPI identifier |
Environment : object
A representation of an Environment known to Cloud Manager.Kind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | id |
| programId | string | Identifier of the program. Unique within the space. |
| name | string | Name of the environment |
| description | string | Description of the environment |
| type | string | Type of the environment |
| status | string | Status of the environment |
| region | string | Region of the environment |
| availableLogOptions | Array.<LogOptionRepresentation> | List of logs available in the environment |
Variable : object
A named value than can be set on an Environment or PipelineKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| name | string | Name of the variable. Can only consist of a-z, A-Z, _ and 0-9 and cannot begin with a number. |
| value | string | Value of the variable. Read-Write for non-secrets, write-only for secrets. The length of
secretString values must be less than 500 characters. An empty value causes a variable to be deleted. |
| type | string | Type of the variable. Default string if missing. secretString variables are encrypted at rest. The type of a variable be changed after creation; the variable must be deleted and recreated. |
| service | string | Service of the variable. When not provided, the variable applies to all services. Currently the values 'author', 'publish', and 'preview' are supported. Note - this value is case-sensitive. |
| status | string | Status of the variable |ContentSet : object
A representation of a ContentSet customKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | string | Identifier of the Content Set |
| name | string | The name of the content set |
| paths | Array.<ContentSetPath> | Included asset paths |
| programId | string | Identifier of the program. Unique within the space. |
| createdAt | string | Create date |
| updatedAt | string | Update date |
ContentFlow : object
The Content Flow ExecutionKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| contentSetId | string | The content set id |
| contentSetName | string | The content set name |
| srcEnvironmentId | string | Source environment id |
| srcEnvironmentName | string | Source environment name |
| destEnvironmentId | string | Destination environment id |
| destEnvironmentName | string | Destination environment name |
| tier | string | The tier, for example author |
| status | string | Status of the flows |
| destProgramId | string | Destination program id |
| resultDetails | undefined | Details of this content flow result |
LogOptionRepresentation : object
Kind: global typedef
Properties| Name | Type | Description |
| --- | --- | --- |
| service | string | Name of the service in environment. Example: author |
| name | string | Name of the log for service in environment. Example: aemerror |
IPAllowedListBinding : object
Describes an __IP Allowed List Binding__Kind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | integer | Identifier of the IP Allowed List Binding to an Environment |
| tier | string | Tier of the environment. |
| status | string | Status of the binding. |
| programId | integer | Identifier of the program. |
| ipAllowListId | integer | Identifier of the IP allow list. |
| environmentId | integer | Identifier of the environment. |
IPAllowedList : object
Describes an __IP Allowed List__Kind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| id | integer | Identifier of the IP Allowed List |
| name | string | Name of the IP Allowed List |
| programId | integer | Identifier of the program. |
| ipCidrSet | Array.<string> | IP CIDR Set |
| bindings | Array.<IPAllowedListBinding> | IP Allowlist bindings |
ListPipelineOptions : object
Options to the listPipeline functionKind: global typedef
Properties
| Name | Type | Description |
| --- | --- | --- |
| busy | boolean | if true, only busy pipelines will be returned |
DownloadedLog : object
Kind: global typedef
Properties| Name | Type | Description |
| --- | --- | --- |
| path | string | the path where the log was stored |
| url | string | the url of the log that was downloaded |
PipelineUpdate : object
Kind: global typedef
Properties| Name | Type | Description |
| --- | --- | --- |
| branch | string | the new branch |
| repositoryId | string | the new repository id |
| devEnvironmentId | string | the new dev environment id |
| stageEnvironmentId | string | the new stage environment id |
| prodEnvironmentId | string | the new prod environment id |
$3
`bash
LOG_LEVEL=debug
`Prepend the
LOG_LEVEL environment variable and debug` value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.Contributions are welcome! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.