Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12706

`Create One Restore Job for One Cluster` has a typo in `Example Request` of `HTTP Restore`

    XMLWordPrintableJSON

Details

    • Typo
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • None
    • API, Code Examples, Ops Manager
    • None
    • KANBAN BUCKET

    Description

      Description

      Hi there,

      I've just detected that Create One Restore Job for One Cluster > Example Request page is currently listing an example which will never work due to a typo.

      Current example for HTTP Restore,

      curl --user "{USERNAME}:{APIKEY}" --digest \
        --header "Accept: application/json" \
        --header "Content-Type: application/json" \
        --include \
        --request POST "https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/groups/{GROUP-ID}/clusters/{CLUSTER-NAME}/restoreJobs?pretty=true" \
        --data '
         {
           "delivery" : {
             "expirationHours" : "1",
             "maxDownloads" : "1"
             "methodName" : "HTTP"
           },
           "snapshotId" : "{SNAPSHOT-ID}"
         }'
      

      Should be (missing comma sign after `maxDownloads`),

      curl --user "{USERNAME}:{APIKEY}" --digest \
        --header "Accept: application/json" \
        --header "Content-Type: application/json" \
        --include \
        --request POST "https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/groups/{GROUP-ID}/clusters/{CLUSTER-NAME}/restoreJobs?pretty=true" \
        --data '
         {
           "delivery" : {
             "expirationHours" : "1",
             "maxDownloads" : "1",
             "methodName" : "HTTP"
           },
           "snapshotId" : "{SNAPSHOT-ID}"
         }'
      

      Could you please have a look and fix?

      Thanks a lot in advance,
      Alexey

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Issue Links

          Activity

            People

              rob.justice@mongodb.com Robert Justice (Inactive)
              alexey.matyushin@mongodb.com Alexey Matyushin
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 50 weeks, 5 days ago