Update serviceaccountbindings
replace the specified ServiceAccountBinding
curl --request POST \
--url https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} \
--header 'Content-Type: */*' \
--data '{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}'import requests
url = "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}"
payload = "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}"
headers = {"Content-Type": "*/*"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: '{\n "apiVersion": "<string>",\n "kind": "<string>",\n "metadata": {},\n "spec": {},\n "status": {}\n}'
};
fetch('https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}",
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}"
payload := strings.NewReader("{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}")
.header("Content-Type", "*/*")
.body("{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}Path Parameters
name of the ServiceAccountBinding
object name and auth scope, such as for teams and projects
Query Parameters
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
If 'true', then the output is pretty printed.
Body
ServiceAccountBinding
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
Show child attributes
Show child attributes
ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding
Show child attributes
Show child attributes
ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding
Show child attributes
Show child attributes
Response
OK
ServiceAccountBinding
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
Show child attributes
Show child attributes
ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding
Show child attributes
Show child attributes
ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding
Show child attributes
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} \
--header 'Content-Type: */*' \
--data '{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}'import requests
url = "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}"
payload = "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}"
headers = {"Content-Type": "*/*"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: '{\n "apiVersion": "<string>",\n "kind": "<string>",\n "metadata": {},\n "spec": {},\n "status": {}\n}'
};
fetch('https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}",
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}"
payload := strings.NewReader("{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}")
.header("Content-Type", "*/*")
.body("{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"apiVersion\": \"<string>\",\n \"kind\": \"<string>\",\n \"metadata\": {},\n \"spec\": {},\n \"status\": {}\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}{
"apiVersion": "<string>",
"kind": "<string>",
"metadata": {},
"spec": {},
"status": {}
}