POST /oapi/v1/selfsubjectrulesreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SelfSubjectRulesReview", "apiVersion": "v1", ... }
SelfSubjectRulesReview is a resource you can create to determine which actions you can perform in a namespace
Expand or mouse-over a field for more information about it.
apiVersion:kind:spec:
scopes:
- [string]:status:
evaluationError:rules:
- apiGroups:
- - [string]:attributeRestrictions:
Raw:nonResourceURLs:
- [string]:resourceNames:
- [string]:resources:
- [string]:verbs:
- [string]:
Create a SelfSubjectRulesReview
POST /oapi/v1/selfsubjectrulesreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SelfSubjectRulesReview", "apiVersion": "v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/oapi/v1/selfsubjectrulesreviews <<'EOF' { "kind": "SelfSubjectRulesReview", "apiVersion": "v1", ... } EOF
Create a SelfSubjectRulesReview
POST /oapi/v1/namespaces/$NAMESPACE/selfsubjectrulesreviews HTTP/1.1 Authorization: Bearer $TOKEN Accept: application/json Connection: close Content-Type: application/json' { "kind": "SelfSubjectRulesReview", "apiVersion": "v1", ... }
$ curl -k \ -X POST \ -d @- \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ https://$ENDPOINT/oapi/v1/namespaces/$NAMESPACE/selfsubjectrulesreviews <<'EOF' { "kind": "SelfSubjectRulesReview", "apiVersion": "v1", ... } EOF
Parameter | Description |
---|---|
namespace |
object name and auth scope, such as for teams and projects |