Get Package
    • PDF

    Get Package

    • PDF

    Article Summary

    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 nameTypeRequirement statusDescriptionRestrictions
    packageNameStringYPackage name

    Request parameters

    Request parameters are as follows:

    Parameter nameTypeRequirement statusDescriptionRestrictions
    platformStringNPlatform type
    - options: vpc/classic
    - default: vpc

    Responses

    Response bodies

    Field nameTypeDescriptionRemarks
    content.nameStringPackage name
    content.resourceIdStringPackage resource ID
    content.descriptionStringPackage description
    content.parametersObjectDefault parameters of the package
    content.actionsString[]Action contained in the package

    Error codes

    HTTP status codeError codesError messageDescription
    40080102PACKAGE_PLATFORM_MISMATCHInvalid platform parameter
    40381002SUB_ACC_NO_PERMISSIONResource view permission error
    40480101PACKAGE_NOT_FOUNDPackage 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?

    What's Next
    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.