Comments (4)
I couldn't figure out how to do it through the C# API, but it can be done with an http request:
https://www.visualstudio.com/en-us/docs/integrate/api/rm/definitions
GET https://{instance}/{project}/_apis/release/definitions/{definitionId}?api-version={version}
What this documentation doesn't point out is that this is available only with version=3.0-preview
This will return environments expanded and everything in those environments including environmental variables.
from azure-devops-dotnet-samples.
You should get a single release definition instead of querying for N definitions and that will give you all the variables. The method name should be something like GetReleaseDefinitionAsync(...)
from azure-devops-dotnet-samples.
Thanks for the response. Feel free to close the issue. I did not test what you suggested, but it sounds like it will work. I ended up just parsing the json to get the data I wanted and it was pretty easy to do.
from azure-devops-dotnet-samples.
Closing the issue as per customer comment.
from azure-devops-dotnet-samples.
Related Issues (20)
- CreateAnnotatedTagAsync sample
- HttpFactory and AddHttpClient in dependency injection
- Need sample/help for QueueBuildAsync HOT 3
- Need sample for merge 2 branch
- How to change variable in a variable group HOT 2
- MSAL example for Non Interactive Pat Generation
- How to add an Area to a Team?
- Update the vote on GitPullRequest
- InteractiveAuthSample.cs is not following security best practices
- VssUnauthorizedException: VS30063: You are not authorized to access using Windows Impersonation
- How to create a work item with multi-line description with code?
- How to make the field appear in the Layout.
- Azure Test Plans: Sample regarding latest test outcome and TestPoints
- How do I queue a build?
- Get team members not work as expected
- PAT Based Authentication not working
- "Failed to run the sample: The SSL connection could not be established, see inner exception."
- Where exactly i can find code sample on how to createworkitem() using javascript ?
- using CreateAttachmentAsync i created task by passing memory stream and created work item then the attached file is showing 0KB ? is there any other way to add attachment? i have debugged memory stream contains data. please help any one
- GlobalLists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-dotnet-samples.