Put Action External Link
- Print
- PDF
Put Action 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 actions.
Requests
Describes parameters, headers, and body information for the request.
Request URL
PUT {CLOUD_FUNCTIONS_API_URL}/packages/{packageName}/actions/{actionName}/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 |
---|---|---|---|---|
packageName | String | Y | Package name - To create an action that does not belong to a package, enter a hyphen (-) | |
actionName | String | Y | Action name |
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 | 80302 | ACTION_PLATFORM_MISMATCH | Invalid platform parameter |
403 | 80002 | SUB_ACC_NO_PERMISSION | Detailed permission error |
- | 80008 | INTEGRATION_EXCEPTION | API Gateway service integration error |
Examples
Request examples
curl -X PUT "https://cloudfunctions.apigw.ntruss.com/ncf/api/v2/packages/-/actions/myaction/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?