MENU
      StartMigrationJob

        StartMigrationJob


        기사 요약

        마이그레이션 작업을 수행(시작)합니다.

        요청

        구문

        POST  https://objectmigration.apigw.ntruss.com/migration-api/v1/policy/{title}/start
        HTTP

        헤더

        공통 가이드 참조

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        titleYesString‘.’, ‘-‘, ‘_’ 이외의 특수문자 기입 불가
        (최대 100 바이트)
        정책명

        응답

        응답 파라미터

        파라미터명타입제약 사항설명
        titleString정책명
        sourceBucketNameString소스 버킷명
        sourceCspTypeString소스 CSP 명
        ex) AWS or Azure
        sourceEndpointString소스 엔드포인트
        sourceRegionNameString이관할 버킷이 존재하는 소스 리전 코드
        sourcePrefixString소스 프리픽스
        targetBuketNameString타겟 버킷명
        targetEndpointString타겟 엔드포인트
        targetRegionNameString해당 NCP버킷이 존재하는 타겟 리전 코드
        targetPrefixString타겟 프리픽스
        jobStateString현재 작업의 상태
        ex) INITIALIZED, STARTED, PAUSED, DELETED, DONE, ERROR
        createTimeDate정책 생성 날짜
        updateTimeString정책 업데이트 날짜
        estimatedDoneBoolean원본 버킷의 prefix에 해당하는 오브젝트들의 리스팅 완료 여부
        estimatedSizeLong원본 버킷의 prefix에 해당하는 오브젝트들의 총합 사이즈
        migratedSizeLong이관 완료된 오브젝트들의 총합 사이즈
        skippedSizeInteger잠금버킷으로 인해 이관이 진행되지 않은 오브젝트들의 총합 사이즈
        estimatedObjectNumInteger원본 버킷의 prefix에 해당하는 오브젝트들의 총합 개수
        migratedObjectNumInteger이관 완료된 오브젝트들의 총합 개수
        skippedObjectNumInteger잠금버킷으로 인해 이관이 진행되지 않은 오브젝트들의 총합 개수

        예시

        요청 예시

        POST  https://objectmigration.apigw.ntruss.com/migration-api/v1/policy/{title}/start
        -H "x-ncp-region_code: {regionCode}“
        -H "x-ncp-iam-access-key: {AccessKey} "
        -H "x-ncp-apigw-timestamp: {current timestamp}"
        -H "x-ncp-apigw-signature-v2: {generated signature}"
        HTTP

        응답 예시

        {
          "title": "테스트",
          "sourceBucketName": "object-migration-test-bucket",
          "sourceCspType": "AWS",
          "sourceEndpoint": "https://s3.ap-northeast-2.amazonaws.com",
          "sourcePrefix": "a/test/test",
          "targetBucketName": "test-bucket",
          "targetEndpoint": "https://kr.beta-object.ncloudstorage.com",
          "targetRegionName": "KR",
          "targetPrefix": "a-test/test",
          "jobState": "STARTED",
          "createTime": "2022-02-11T04:41:29.840998",
          "updateTime": "2022-02-11T04:41:29.84126",
          "estimatedDone": false,
          "estimatedSize": 0,
          "migratedSize": 0,
          "skippedSize": 0,
          "estimatedObjectNum": 0,
          "migratedObjectNum": 0,
          "skippedObjectNum": 0
        }
        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.