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`

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API, Code Examples, Ops Manager
    • Labels:
      None

      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.)

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

              Created:
              Updated:
              Resolved:
              4 years, 45 weeks, 3 days ago