Put Trigger External Link
    • PDF

    Put Trigger External Link

    • PDF

    Article Summary

    Available in Classic and VPC

    Creates or edits the external link address to call Cloud Functions triggers.

    Requests

    Describes parameters, headers, and body information for the request.

    Request URL

    PUT {CLOUD_FUNCTIONS_API_URL}/packages/triggers/{triggerName}/external-link-url
    
    Content-Type: application/json; charset=utf-8
    x-ncp-apigw-timestamp: {Timestamp}
    x-ncp-iam-access-key: {Sub Account Access Key}
    x-ncp-apigw-signature-v2: {API Gateway Signature}
    

    Path Variables

    Parameter nameTypeRequiredDescriptionService limits
    triggerNameStringYTrigger nameStrings of up to 50 characters consisting of English letters, numbers, hyphens (-), and underscores (_)

    Request parameters

    Request parameters are as follows:

    Parameter nameTypeRequiredDescriptionService limits
    platformStringNPlatform type
    - options: vpc/classic
    - default: vpc

    Request bodies

    Field nameTypeRequiredDescriptionService limits
    linkObject[]YAPI Gateway information for the external link address
    link[].productNameStringYProduct name of the API Gateway for the external link address
    link[].apiNameStringYAPI name of the API Gateway for the external link address
    link[].stageNameStringYStage name of the API Gateway for the external link address
    link[].authenticationStringNAuthentication method of the API Gateway for creating external link address
    - options: NONE/IAM
    - default: IAM

    Responses

    Response bodies

    Field nameTypeDescriptionNote
    content.resultStringRun result

    Errors

    HTTP status codeErrorsError messageDescription
    40080007EXT_LINK_BODY_INVALID_TYPEInvalid request body field type
    40080008EXT_LINK_BODY_MISSING_FIELDRequired request body field omitted
    40080009EXT_LINK_BODY_INVALID_VALUEInvalid request body field values
    40080502TRIGGER_PLATFORM_MISMATCHInvalid platform request parameters
    40080504TRIGGER_TYPE_MISMATCHRequest for wrong trigger type
    40380002SUB_ACC_NO_PERMISSIONDetailed permission error
    40480501TRIGGER_NOT_FOUNDTrigger not found
    -80008INTEGRATION_EXCEPTIONAPI Gateway service integration error

    Examples

    Request examples

    curl -X PUT "https://cloudfunctions.apigw.ntruss.com/ncf/api/v2/triggers/mytrigger/external-link-url?platform=vpc"
    -H "Content-Type: application/json"
    -H "x-ncp-iam-access-key: Y0Z9EG0lKoeWAQCSHRtM"
    -H "x-ncp-apigw-timestamp: 1546398302273"
    -H "x-ncp-apigw-signature-v2: VXjaLhHB2CdowCrqDNYg7w7GR3TYxZzM2eIZ+i3IH0Q="
    -d '<See the following>'
    
    {
        "link": [
            {
                "productName": "functions",
                "apiName": "api",
                "stageName": "v1",
                "authentication": "IAM"
            }
        ]
    }
    

    Response examples

    {
        "content": {
            "result": "ok"
        }
    }
    

    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.