diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxOesController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxOesController.groovy index 767fa59286..6e00cac7f5 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxOesController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxOesController.groovy @@ -513,8 +513,9 @@ class OpsmxOesController { @RequestParam(value = "nameSpace", required = false) String nameSpace, @RequestParam(value = "argoCdUrl", required = false) String argoCdUrl, @RequestParam(value ="rolloutsEnabled", required = false) Boolean rolloutsEnabled, + @RequestParam(value ="createdStatus", required = false) Boolean createdStatus, @RequestParam(value = "isdUrl", required = false) String isdUrl) { - Response response = opsmxOesService.agentManifestDownloadFile(type, source, source1, description, isExists, nameSpace, argoCdUrl, rolloutsEnabled, isdUrl) + Response response = opsmxOesService.agentManifestDownloadFile(type, source, source1, description, isExists, nameSpace, argoCdUrl, rolloutsEnabled, createdStatus,isdUrl) InputStream inputStream = response.getBody().in() try { byte[] manifestFile = IOUtils.toByteArray(inputStream) diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxPlatformController.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxPlatformController.groovy index 9add092696..8b6d4fad57 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxPlatformController.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/OpsmxPlatformController.groovy @@ -435,9 +435,10 @@ class OpsmxPlatformController { @PathVariable("source3") String source3, @PathVariable("source4") String source4, @RequestParam(value = "featureType", required = false) String featureType, + @RequestParam(name = "createdStatus", required = false) boolean createdStatus, @RequestBody(required = false) Object data) { - return opsmxPlatformService.updatePlatformResponse4(version, type, source, source1, source2, source3, source4, featureType,data) + return opsmxPlatformService.updatePlatformResponse4(version, type, source, source1, source2, source3, source4, featureType,createdStatus,data) } @ApiOperation(value = "download metric analysis sample template") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxOesService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxOesService.groovy index 03c13e7ce9..984f98b3b2 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxOesService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxOesService.groovy @@ -37,6 +37,7 @@ interface OpsmxOesService { @Query("nameSpace") String nameSpace, @Query("argoCdUrl") String argoCdUrl, @Query("rolloutsEnabled") boolean rolloutsEnabled, + @Query("createdStatus") boolean createdStatus, @Query("isdUrl") String isdUrl) @GET("/oes/accountsConfig/{version}/agents/{agentName}/manifest/apple/automation") diff --git a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxPlatformService.groovy b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxPlatformService.groovy index c9d3bace21..7860e3625b 100644 --- a/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxPlatformService.groovy +++ b/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OpsmxPlatformService.groovy @@ -259,6 +259,7 @@ interface OpsmxPlatformService { @Path('source3') String source3, @Path('source4') String source4, @Query("featureType") String featureType, + @Query("createdStatus") boolean createdStatus, @Body Object data) @GET("/platformservice/{version}/argo/sampleTemplate")