Curl container command into c#

38 Views Asked by At

I'm trying to pass the following restart command that will run in a container, into a C# command, but I'm not sure how to do it, help please:

curl --header "Content-Type:application/json" "$BALENA_SUPERVISOR_ADDRESS/v2/applications/$BALENA_APP_ID/restart-service?apikey=$BALENA_SUPERVISOR_API_KEY" -d '{"serviceName": "venue"}'
0

There are 0 best solutions below