Get Action List
    • PDF

    Get Action List

    • PDF

    기사 요약

    Cloud Functions 액션 리스트를 조회합니다.

    요청

    요청을 위한 파라미터, 헤더, 바디 정보를 설명합니다.

    요청 URL

    GET {CLOUD_FUNCTIONS_API_URL}/packages/{packageName}/actions
    
    x-ncp-apigw-timestamp: {Timestamp}
    x-ncp-iam-access-key: {Sub Account Access Key}
    x-ncp-apigw-signature-v2: {API Gateway Signature}
    

    Path Variables

    파라미터명타입필수 여부설명제약 사항
    packageNameStringY패키지 이름
    - 패키지에 속하지 않은 액션을 조회하는 경우 붙임표( - )를 입력

    응답

    응답 바디

    필드명타입설명비고
    content.actionsObject[]액션 리스트
    content.actions[].descriptionString액션 설명
    content.actions[].nameString액션 이름
    content.actions[].typeString액션 타입
    content.actions[].runtimeString액션 런타임sequece, web-sequence 타입 액션일 경우, sequence 고정 값

    오류 코드

    HTTP 상태 코드오류 코드오류 메시지설명
    40380002SUB_ACC_NO_PERMISSION리소스 조회 권한 오류

    예시

    요청 예시

    curl -X GET "https://cloudfunctions.apigw.fin-ntruss.com/ncf/api/v2/packages/-/actions"
    -H "x-ncp-iam-access-key: Y0Z9EG0lKoeWAQCSHRtM"
    -H "x-ncp-apigw-timestamp: 1546398302273"
    -H "x-ncp-apigw-signature-v2: VXjaLhHB2CdowCrqDNYg7w7GR3TYxZzM2eIZ+i3IH0Q="
    

    응답 예시

    {
        "content": {
            "actions": [
                {
                    "description": "My action",
                    "name": "myaction",
                    "type": "basic",
                    "runtime": "python:3.11"
                },
                {
                    "description": "My web action",
                    "name": "mywebaction",
                    "type": "web",
                    "runtime": "python:3.11"
                },
                {
                    "description": "My sequence action",
                    "name": "myseqaction",
                    "type": "sequence",
                    "runtime": "sequence"
                }
            ]
        }
    }
    

    이 문서가 도움이 되었습니까?

    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.