Recent content by Mick Vazovsky

  1. M

    Powershell API not working?

    Using Invoke-WebRequest, example to ticket: $params = @{"username"="test@pve"; "password"="password"; } Invoke-WebRequest -Uri "https://ip:8006/api2/json/access/ticket" -Method POST -Body $params | ConvertFrom-Json
  2. M

    API response: {"errors":{"vmid":"property is missing and it is not optional"},"data":null}

    This request to url (https://10.40.100.95:8006/api2/json/nodes/pve01/qemu) returns an error {"errors":{"vmid":"property is missing and it is not optional"},"data":null}, request for url (https://10.40.100.95:8006/api2/json/nodes), returned an array, what's wrong? in the documentation like...
  3. M

    Call Api C#

    I succeeded, I used a call with RestSharp Thanks Hannes for your help )). var client = new RestClient("https://10.40.100.95:8006/api2/json/nodes"); client.Timeout = -1; var request = new RestRequest(Method.GET); request.AddHeader("Authorization"...
  4. M

    Call Api C#

    Yes, Visual studio project Console Application.
  5. M

    Call Api C#

    Not helped: FormatException: The format of value 'PVEAPIToken=test@pve!ddf5959760540181d171d2e2a7adcba4=ad78e07e-a418-41a1-a201-3528154737f2' is invalid.
  6. M

    Call Api C#

    Not understand, how to write?: user name: test@pve token name and password: ddf5959760540181d171d2e2a7adcba4 tokenID: test@pve!ddf5959760540181d171d2e2a7adcba4 Secret: ad78e07e-a418-41a1-a201-3528154737f2 client.DefaultRequestHeaders.Add("Authorization"...
  7. M

    Call Api C#

    Fixed, but the error is the same. FormatException: The format of value 'PVEAPIToken=test@pve!TOKENID=ddf5959760540181d171d2e2a7adcba4' is invalid.
  8. M

    Call Api C#

    Help me figure it out, the token is there, the call does not accept the header. using (var client = new HttpClient()) { var url = "https://10.40.100.95:8006/api2/json/nodes"; client.DefaultRequestHeaders.Add("Authorization"...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!