CreateIntegration
    • PDF

    CreateIntegration

    • PDF

    Article Summary

    개요

    Integration를 생성합니다.

    요청

    API URL

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

    요청 헤더

    공통 설정에 명시된 요청 헤더가 필요합니다.

    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}
    

    요청 바디

    파라미터명필수 여부타입제약사항설명
    nameYStringIntegration 이름
    typeYString현재 OUT_GOING 만 지원Integration 타입
    urlYString호출되어야 하는 url
    headersNMap<String, String>호출 시 사용되어야 하는 header
    payloadYString호출 시 사용되어야 하는 payload

    예시

    요청 예시

    다음은 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"
    }
    

    응답 예시

    오류 없이 생성이 완료된 경우 HTTP code 200과 함께 해당 Integration의 id가 리턴됩니다.

    "999"
    

    이 문서가 도움이 되었습니까?

    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.