[DOCS-12706] `Create One Restore Job for One Cluster` has a typo in `Example Request` of `HTTP Restore` Created: 16/May/19  Updated: 29/Oct/23  Resolved: 18/Jun/19

Status: Closed
Project: Documentation
Component/s: API, Code Examples, Ops Manager
Affects Version/s: None
Fix Version/s: None

Type: Typo Priority: Minor - P4
Reporter: Alexey Matyushin Assignee: Robert Justice (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 4 years, 34 weeks, 2 days ago

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



 Comments   
Comment by Alexey Matyushin [ 17/Jun/19 ]

Hi there, can we have an update on this ticket please?

Generated at Thu Feb 08 08:05:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.