CreateIntegration
    • PDF

    CreateIntegration

    • PDF

    Article summary

    Overview

    You can create integration.

    Requests

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/integration/create
    Method: POST
    

    Request headers

    The request headers specified in common settings are required.

    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    Request bodies

    Parameter nameRequirement statusTypeRestrictionsDescription
    nameYStringIntegration name
    typeYStringCurrently, only OUT_GOING is supported.Integration type
    urlYStringURL to be called
    headersNMap<String, String>Header to be used for the call
    payloadYStringPayload to be used for the call

    Examples

    Request examples

    The following is an example of creating integration:

    POST /cw_fea/real/cw/api/integration/create
    Host: cw.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    
    Payload:
    {
        "headers": {
            "content-type": "application/json; charset=utf-8"
        },
        "name": "aaaa",
        "payload": "{\n\t\"text\": \"#{DOMAIN_CODE} => #{RULE_NAME} 's event is #{EVENT_STATUS}. The condition is #{RESOURCE_NAME} 's #{DIMENSIONS} #{METRIC} #{OPERATOR} #{CRITERIA}. The current value is #{VALUE}\"\n}",
        "type": "OUT_GOING",
        "url": "https://url"
    }
    

    Response examples

    If creation is completed without errors, ID of the integration is returned with an HTTP code 200.

    "999"
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.