Get Package
- Print
- PDF
Get Package
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Available in Classic and VPC
Views detailed information of the Cloud Functions packages.
Requests
Request URL
GET {CLOUD_FUNCTIONS_API_URL}/packages/{packageName}
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 | Requirement status | Description | Restrictions |
---|---|---|---|---|
packageName | String | Y | Package name |
Request parameters
Request parameters are as follows:
Parameter name | Type | Requirement status | Description | Restrictions |
---|---|---|---|---|
platform | String | N | Platform type - options: vpc/classic - default: vpc |
Responses
Response bodies
Field name | Type | Description | Remarks |
---|---|---|---|
content.name | String | Package name | |
content.resourceId | String | Package resource ID | |
content.description | String | Package description | |
content.parameters | Object | Default parameters of the package | |
content.actions | String[] | Action contained in the package |
Error codes
HTTP status code | Error codes | Error message | Description |
---|---|---|---|
400 | 80102 | PACKAGE_PLATFORM_MISMATCH | Invalid platform parameter |
403 | 81002 | SUB_ACC_NO_PERMISSION | Resource view permission error |
404 | 80101 | PACKAGE_NOT_FOUND | Package not found |
Examples
Request examples
curl -X GET "https://cloudfunctions.apigw.ntruss.com/ncf/api/v2/packages/mypackage?platform=vpc"
-H "x-ncp-iam-access-key: Y0Z9EG0lKoeWAQCSHRtM"
-H "x-ncp-apigw-timestamp: 1546398302273"
-H "x-ncp-apigw-signature-v2: VXjaLhHB2CdowCrqDNYg7w7GR3TYxZzM2eIZ+i3IH0Q="
Response examples
{
"content": {
"actions": [
"myaction"
],
"description": "My package",
"name": "mypackage",
"parameters": {
"name": "Cloud Functions",
"place": "NAVER Cloud"
},
"resourceId": "GH2r0"
}
}
Was this article helpful?