I am using multi stage pipelines for creating ci,cd. Here I am not getting any releases under release tab. So I am querying all deployments using environment id. See below link for getting deployment records by environment id.
Now I am looking for client api for above documentation.
example for getting classic releases through api Microsoft.VisualStudio.Services.ReleaseManagement.WebApi
.
var releases = releaseClient.GetReleasesAsync(Project, releaseDefinitionId).Result;
Same way I am looking for any web api api available to get deployments using environment id.