Last active
November 19, 2016 00:13
-
-
Save scott-kloud/2c6e905c99c50a10be43165c93212c35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sub-flow name="cloudhubLogFiles"> | |
<set-payload value="{}" mimeType="application/json" doc:name="Set Payload"/> | |
<http:request config-ref="CloudHub_Config" path="/v2/applications/{domain}/instances/{instanceId}/log-file" method="GET" doc:name="HTTP"> | |
<http:request-builder> | |
<http:uri-param paramName="domain" value="#[flowVars.config.anypointApplication]"/> | |
<http:uri-param paramName="instanceId" value="#[flowVars.instanceId]"/> | |
<http:header headerName="X-ANYPNT-ENV-ID" value="#[flowVars.config.anypointEnvironmentId]"/> | |
<http:header headerName="Authorization" value="#['Bearer ' + flowVars.access_token]"/> | |
</http:request-builder> | |
</http:request> | |
<transformer ref="customZipTransformer" doc:name="ZIP before sending"/> | |
<s3:create-object config-ref="Amazon_S3_Configuration" bucketName="#[flowVars.config.amazonS3Bucket]" key="#[flowVars.config.anypointApplication + '-' + flowVars.instanceId + '-' + server.dateTime + '.zip']" doc:name="Amazon S3"/> | |
</sub-flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment