@@ -67,7 +67,7 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
6767 "lineage": "[UUID]",
6868 "serial": 1,
6969 "features": {
70- "deployment_history ": {}
70+ "deployment_history_best_effort ": {}
7171 }
7272}
7373
@@ -114,6 +114,25 @@ Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
114114 }
115115 }
116116}
117+ {
118+ "method": "POST",
119+ "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions",
120+ "q": {
121+ "version_id": "2"
122+ },
123+ "body": {
124+ "cli_version": "[CLI_VERSION]",
125+ "previous_version_id": "1",
126+ "version_type": "VERSION_TYPE_DEPLOY"
127+ }
128+ }
129+ {
130+ "method": "POST",
131+ "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/2/complete",
132+ "body": {
133+ "completion_reason": "VERSION_COMPLETE_SUCCESS"
134+ }
135+ }
117136
118137>>> [CLI] bundle plan -t prod -o json
119138Recommendation: target with 'mode: production' should set 'workspace.root_path' to make sure only one copy is deployed
@@ -126,9 +145,9 @@ A common practice is to use a username or principal name in this path, i.e. use
126145 "plan_version": [PLAN_VERSION],
127146 "cli_version": "[CLI_VERSION]",
128147 "lineage": "[UUID]",
129- "serial": 1 ,
148+ "serial": 2 ,
130149 "features": {
131- "deployment_history ": {}
150+ "deployment_history_best_effort ": {}
132151 }
133152}
134153
@@ -163,6 +182,25 @@ Files: 0 uploaded, 0 deleted
163182Resources: 0 created, 0 changed, 0 deleted, 1 unchanged
164183
165184>>> print_requests.py --dms //api/2.0/bundle
185+ {
186+ "method": "POST",
187+ "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions",
188+ "q": {
189+ "version_id": "3"
190+ },
191+ "body": {
192+ "cli_version": "[CLI_VERSION]",
193+ "previous_version_id": "2",
194+ "version_type": "VERSION_TYPE_DEPLOY"
195+ }
196+ }
197+ {
198+ "method": "POST",
199+ "path": "/api/2.0/bundle/deployments/[DEPLOYMENT_ID]/versions/3/complete",
200+ "body": {
201+ "completion_reason": "VERSION_COMPLETE_SUCCESS"
202+ }
203+ }
166204
167205>>> MSYS_NO_PATHCONV=1 [CLI] bundle-deployments list-resources deployments/[DEPLOYMENT_ID] -o json
168206[
0 commit comments