https://github.com/katasec/pulumiapi
A dotnet client for the [Pulumi Service Rest API](https://www.pulumi.com/docs/reference/service-rest-api/)
https://github.com/katasec/pulumiapi
csharp dotnet
Last synced: 9 months ago
JSON representation
A dotnet client for the [Pulumi Service Rest API](https://www.pulumi.com/docs/reference/service-rest-api/)
- Host: GitHub
- URL: https://github.com/katasec/pulumiapi
- Owner: katasec
- Created: 2023-01-13T18:33:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T17:28:12.000Z (over 3 years ago)
- Last Synced: 2025-09-19T12:51:51.541Z (10 months ago)
- Topics: csharp, dotnet
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Overview
A dotnet client for the [Pulumi Service Rest API](https://www.pulumi.com/docs/reference/service-rest-api/). Adding some methods as needed. Please check [here](./PulumiApi.Test/UnitTest1.cs) or
[here](./PulumiApi/IPulumiApi.cs) to see what's been implemented. The client authenticates against your pulumi account using the credential file in `~/.pulumi/credentials.json`.
## Example 1: List All Stacks
```csharp
var client = new PulumiApi.ApiClient();
var result = await client.ListStacks();
Console.WriteLine("Stacks in your account:");
result.Stacks?.ToList().ForEach(x =>
{
Console.WriteLine($"- {x.OrgName}/{x.ProjectName}/{x.StackName}");
});
```
Sample output:
```
Stacks in your account:
- katasec/hello/dev
- katasec/azurecloudspace/dev
- katasec/ark-init/dev
```