Put Trigger External Link
- Print
- PDF
Put Trigger External Link
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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 name | Type | Required | Description | Service limits |
---|---|---|---|---|
triggerName | String | Y | Trigger name | Strings of up to 50 characters consisting of English letters, numbers, hyphens (-), and underscores (_) |
Request parameters
Request parameters are as follows:
Parameter name | Type | Required | Description | Service limits |
---|---|---|---|---|
platform | String | N | Platform type - options: vpc/classic - default: vpc |
Request bodies
Field name | Type | Required | Description | Service limits |
---|---|---|---|---|
link | Object[] | Y | API Gateway information for the external link address | |
link[].productName | String | Y | Product name of the API Gateway for the external link address | |
link[].apiName | String | Y | API name of the API Gateway for the external link address | |
link[].stageName | String | Y | Stage name of the API Gateway for the external link address | |
link[].authentication | String | N | Authentication method of the API Gateway for creating external link address - options: NONE/IAM - default: IAM |
Responses
Response bodies
Field name | Type | Description | Note |
---|---|---|---|
content.result | String | Run result |
Errors
HTTP status code | Errors | Error message | Description |
---|---|---|---|
400 | 80007 | EXT_LINK_BODY_INVALID_TYPE | Invalid request body field type |
400 | 80008 | EXT_LINK_BODY_MISSING_FIELD | Required request body field omitted |
400 | 80009 | EXT_LINK_BODY_INVALID_VALUE | Invalid request body field values |
400 | 80502 | TRIGGER_PLATFORM_MISMATCH | Invalid platform request parameters |
400 | 80504 | TRIGGER_TYPE_MISMATCH | Request for wrong trigger type |
403 | 80002 | SUB_ACC_NO_PERMISSION | Detailed permission error |
404 | 80501 | TRIGGER_NOT_FOUND | Trigger not found |
- | 80008 | INTEGRATION_EXCEPTION | API 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?