MENU
      UpdateMigrationJob

        UpdateMigrationJob


        記事の要約

        マイグレーションポリシーの内容を修正します。

        リクエスト

        構文

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

        リクエストボディ

        {
          "title": "string", //「.」、「-」、「_」を除く特殊文字は記入不可 (最大100バイト)
        "source": {
            "bucketName": "string",
            "sourceCspType": "string",
            "accessKey": "string",
            "secretKey": "string",
            "regionName": "string",
            "prefix": "string",
        },
        "target": {
        "bucketName": "string",
            "prefix": "string"
        }
        }
        HTTP

        レスポンス

        レスポンスパラメータ

        パラメータ名タイプ制約事項説明
        titleStringポリシー名
        sourceBucketNameStringソースバケット名
        sourceCspTypeStringソースCSP名
        ex) AWS or Azure
        sourceEndpointStringソースエンドポイント
        sourceRegionNameString移行するバケットが存在するソースリージョンコード
        sourcePrefixStringソースプレフィックス
        targetBuketNameStringターゲットバケット名
        targetEndpointStringターゲットエンドポイント
        targetRegionNameString当該NAVERクラウドプラットフォームバケットが存在するターゲットリージョンコード
        targetPrefixStringターゲットプレフィックス
        jobStateString現在作業の状態
        ex) INITIALIZED, STARTED, PAUSED, DELETED, DONE, ERROR
        createTimeDateポリシーの作成日
        updateTimeStringポリシーのアップデート日
        estimatedDoneBooleanソースバケットのprefixに該当するオブジェクトをリスティング完了したかどうか
        estimatedSizeLongソースバケットのprefixに該当するオブジェクトの合計サイズ
        migratedSizeLong移行完了したオブジェクトの合計サイズ
        skippedSizeIntegerロックバケットにより移行が行われていないオブジェクトの合計サイズ
        estimatedObjectNumIntegerソースバケットのprefixに該当するオブジェクトの総数
        migratedObjectNumInteger移行完了したオブジェクトの総数
        skippedObjectNumIntegerロックバケットにより移行が行われていないオブジェクトの総数

        リクエスト例

        PUT https://objectmigration.apigw.ntruss.com/migration-api/v1/policy/{title}
        -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}"
        
        Payload:
        {
          "title": "테스트",
        
          "source": {
            "accessKey": "{source access key}", // AZURE : Storage Account
            "bucketName": "object-migration-test-bucket",
            "sourceCspType": "AWS",
            "regionName": "ap-northeast-2",
            "secretKey": "{source secret key}", // AZURE : Access Key
            "prefix": "a/test/test"
          },
          "target": {
            "bucketName": "test-bucket",
            "prefix": "a-test/test"
          }
        }
        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": "INITIALIZED",
          "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.