Skip to content

Commit 84f6f43

Browse files
authored
CLOUDP-149874: export jobs should use exportJobID (#331)
1 parent bea58b1 commit 84f6f43

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mongodbatlas/cloud_provider_snapshot_export_jobs.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,21 @@ func (c CloudProviderSnapshotExportJobsServiceOp) List(ctx context.Context, proj
7373
return root, resp, nil
7474
}
7575

76-
// Get Allows you to retrieve one export job specified by the bucket ID.
76+
// Get Allows you to retrieve one export job specified by the export job ID.
7777
//
7878
// See more: https://docs.atlas.mongodb.com/reference/api/cloud-backup/export/get-one-export-job/
79-
func (c CloudProviderSnapshotExportJobsServiceOp) Get(ctx context.Context, projectID, clusterName, bucketID string) (*CloudProviderSnapshotExportJob, *Response, error) {
79+
func (c CloudProviderSnapshotExportJobsServiceOp) Get(ctx context.Context, projectID, clusterName, exportJobID string) (*CloudProviderSnapshotExportJob, *Response, error) {
8080
if projectID == "" {
8181
return nil, nil, NewArgError("projectID", "must be set")
8282
}
8383
if clusterName == "" {
8484
return nil, nil, NewArgError("clusterName", "must be set")
8585
}
86-
if bucketID == "" {
87-
return nil, nil, NewArgError("bucketID", "must be set")
86+
if exportJobID == "" {
87+
return nil, nil, NewArgError("exportJobID", "must be set")
8888
}
8989

90-
path := fmt.Sprintf("api/atlas/v1.0/groups/%s/clusters/%s/backup/exports/%s", projectID, clusterName, bucketID)
90+
path := fmt.Sprintf("api/atlas/v1.0/groups/%s/clusters/%s/backup/exports/%s", projectID, clusterName, exportJobID)
9191

9292
req, err := c.Client.NewRequest(ctx, http.MethodGet, path, nil)
9393
if err != nil {

0 commit comments

Comments
 (0)