MENU
      getTemplateExportRequestList

        getTemplateExportRequestList


        기사 요약

        Classic/VPC 환경에서 이용 가능합니다.

        이메일 템플릿의 백업 파일 생성을 요청한 내역 목록을 조회합니다.

        요청

        요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

        메서드URI
        GET/template/export

        요청 헤더

        Cloud Outbound Mailer API에서 공통으로 사용하는 헤더에 대한 자세한 내용은 Cloud Outbound Mailer 요청 헤더를 참조해 주십시오.

        요청 쿼리 파라미터

        파라미터에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        sizeIntegerOptional페이지당 레코드 개수
        • 10 (기본값)
        pageIntegerOptional조회할 페이지 인덱스
        • 0 이상
        sortStringOptional정렬 기준
        • createUtc (기본값) | sid | statusCode
          • createUtc: 요청 생성 일시
          • sid: 요청 SID
          • statusCode: 요청 상태
        • property(,asc|desc) 형식
          • asc (기본값)
        • 복수의 정렬 기준 설정 가능

        요청 예시

        요청 예시는 다음과 같습니다.

        curl --location --request GET 'https://mail.apigw.ntruss.com/api/v1/template/export
        ?size=5
        &page=0'
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        응답

        응답 형식을 설명합니다.

        응답 바디

        응답 바디에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        contentList<TemplateExportRequestResponse>Optional요청 내역 목록에 대한 상세 내용
        totalElementsIntegerRequired총 레코드 개수
        lastBooleanRequired마지막 페이지 여부
        totalPagesIntegerRequired총 페이지 수
        sizeIntegerRequired페이지당 레코드 개수
        numberIntegerRequired현재 페이지의 인덱스
        • 0 이상
        sortList<Sort>Required정렬 기준
        firstBooleanRequired첫 번째 페이지 여부
        numberOfElementsIntegerRequired현재 페이지의 레코드 개수

        응답 상태 코드

        응답 상태 코드에 대한 설명은 다음과 같습니다.

        HTTP 상태 코드코드설명
        200-요청 성공
        400-인증 실패, 잘못된 요청
        40077101로그인 정보 오류
        40077102요청 오류
        40077103요청한 리소스가 존재하지 않음
        40377201요청한 리소스에 대한 권한이 없음
        40377202이메일 서비스 사용을 신청하지 않은 사용자가 호출한 경우
        40577001지원되지 않는 메서드 유형
        41577002지원되지 않는 미디어 유형
        500-서버 오류
        50077301기본 프로젝트가 존재하지 않음
        50077302외부 시스템 API 연동 오류
        50077303그 외 내부 서버 오류

        응답 예시

        응답 예시는 다음과 같습니다.

        {
          "content": [
            {
              "sid": 1,
              "projectSid": 270294,
              "requestUtc": {
                "utc": 1576655804261,
                "formattedDate": "2019-12-18",
                "formattedDateTime": "2019-12-18 16:56:44 261"
              },
              "completeUtc": {
                "utc": 1578383178834,
                "formattedDate": "2020-01-07",
                "formattedDateTime": "2020-01-07 16:46:18 834"
              },
              "elapsedTime": "479:49:34.573",
              "statusCode": {
                "label": "Expire",
                "code": "E"
              },
              "downloadUrl": "http://localhost:7070/v1/email/templates/export/1"
            },
            {
              "sid": 11,
              "projectSid": 270294,
              "requestUtc": {
                "utc": 1589369165996,
                "formattedDate": "2020-05-13",
                "formattedDateTime": "2020-05-13 20:26:05 996"
              },
              "completeUtc": {
                "utc": 1589369224517,
                "formattedDate": "2020-05-13",
                "formattedDateTime": "2020-05-13 20:27:04 517"
              },
              "elapsedTime": "00:00:58.521",
              "statusCode": {
                "label": "Complete",
                "code": "C"
              },
              "downloadUrl": "http://localhost:7070/v1/email/templates/export/11"
            }
          ],
          "totalElements": 2,
          "last": true,
          "totalPages": 1,
          "size": 5,
          "number": 0,
          "sort": [
            {
              "direction": "DESC",
              "property": "createUtc",
              "ignoreCase": false,
              "nullHandling": "NATIVE",
              "ascending": false,
              "descending": true
            }
          ],
          "first": true,
          "numberOfElements": 2
        }
        JSON

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

        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.