Skip to main content

Shield

Version: 0.1.0

/v1beta1/actions

GET

Summary

Get all Actions

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListActionsResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Action

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1ActionRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateActionResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/check

POST

Summary

check permission for action on a resource by an user

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1CheckResourcePermissionRequest
Responses
CodeDescriptionSchema
200A successful response.v1beta1CheckResourcePermissionResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/groups

GET

Summary

Get all Groups

Parameters
NameLocated inDescriptionRequiredSchema
userIdqueryNostring
orgIdqueryNostring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListGroupsResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Group

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1GroupRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateGroupResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/groups/{id}

GET

Summary

Get Group by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetGroupResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update Group by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1GroupRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateGroupResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/groups/{id}/relations

GET

Summary

Get all relations for a group

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
subjectTypequeryNostring
rolequeryNostring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListGroupRelationsResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/metadatakey

POST

Summary

Create Metadata Key

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1MetadataKeyRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateMetadataKeyResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces

GET

Summary

Get all Namespaces

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListNamespacesResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Namespace

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1NamespaceRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateNamespaceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/namespaces/{id}

GET

Summary

Get Namespace by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetNamespaceResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update Namespace by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1NamespaceRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateNamespaceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/object/{objectId}/subject/{subjectId}/role/{role}

DELETE

Summary

Remove a subject having a role from an object

Parameters
NameLocated inDescriptionRequiredSchema
objectIdpathYesstring
subjectIdpathYesstring
rolepathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1DeleteRelationResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/organizations

GET

Summary

Get all Organization

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListOrganizationsResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Organization

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1OrganizationRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateOrganizationResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/organizations/{id}

GET

Summary

Get Organization by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetOrganizationResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update Organization by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1OrganizationRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateOrganizationResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/organizations/{id}/admins

GET

Summary

Get all Admins of an Organization

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListOrganizationAdminsResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/policies

GET

Summary

Get all Policy

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListPoliciesResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Policy

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1PolicyRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreatePolicyResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/projects

GET

Summary

Get all Project

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListProjectsResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Project

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1ProjectRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateProjectResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/projects/{id}

GET

Summary

Get Project by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetProjectResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update Project by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1ProjectRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateProjectResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/projects/{id}/admins

GET

Summary

Get all Admins of a Project

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListProjectAdminsResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/relations

GET

Summary

Get all Relations

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListRelationsResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Relation

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1RelationRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateRelationResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/relations/{id}

GET

Summary

Get Relation by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetRelationResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/resources

GET

Summary

Get all Resources

Parameters
NameLocated inDescriptionRequiredSchema
groupIdqueryNostring
projectIdqueryNostring
organizationIdqueryNostring
namespaceIdqueryNostring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListResourcesResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Resource

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1ResourceRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateResourceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/resources/{id}

GET

Summary

Get Resource by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetResourceResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update Resource by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1ResourceRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateResourceResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/roles

GET

Summary

Get all Roles

Responses
CodeDescriptionSchema
200A successful response.v1beta1ListRolesResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create Role

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1RoleRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateRoleResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/users

GET

Summary

Get All Users

Parameters
NameLocated inDescriptionRequiredSchema
pageSizequeryNointeger
pageNumqueryNointeger
keywordqueryNostring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListUsersResponse
defaultAn unexpected error response.rpcStatus

POST

Summary

Create User

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1UserRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1CreateUserResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/users/self

GET

Summary

Get current user

Responses
CodeDescriptionSchema
200A successful response.v1beta1GetCurrentUserResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update current User

Parameters
NameLocated inDescriptionRequiredSchema
bodybodyYesv1beta1UserRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateCurrentUserResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/users/{id}

GET

Summary

Get a User by id

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
Responses
CodeDescriptionSchema
200A successful response.v1beta1GetUserResponse
defaultAn unexpected error response.rpcStatus

PUT

Summary

Update User by ID

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
bodybodyYesv1beta1UserRequestBody
Responses
CodeDescriptionSchema
200A successful response.v1beta1UpdateUserResponse
defaultAn unexpected error response.rpcStatus

/v1beta1/users/{id}/groups

GET

Summary

List Groups of a User

Parameters
NameLocated inDescriptionRequiredSchema
idpathYesstring
rolequeryNostring
Responses
CodeDescriptionSchema
200A successful response.v1beta1ListUserGroupsResponse
defaultAn unexpected error response.rpcStatus

Models

CheckResourcePermissionResponseResourcePermissionResponse

NameTypeDescriptionRequired
objectIdstringNo
objectNamespacestringNo
permissionstringNo
allowedbooleanNo

protobufAny

NameTypeDescriptionRequired
@typestringNo

protobufNullValue

NullValue is a singleton enumeration to represent the null value for the Value type union.

The JSON representation for NullValue is JSON null.

  • NULL_VALUE: Null value.
NameTypeDescriptionRequired
protobufNullValuestringNullValue is a singleton enumeration to represent the null value for the Value type union. The JSON representation for NullValue is JSON null. - NULL_VALUE: Null value.

rpcStatus

NameTypeDescriptionRequired
codeintegerNo
messagestringNo
details[ protobufAny ]No

v1beta1Action

NameTypeDescriptionRequired
idstringNo
namestringNo
namespacev1beta1NamespaceNo
createdAtdateTimeNo
updatedAtdateTimeNo
namespaceIdstringNo

v1beta1ActionRequestBody

NameTypeDescriptionRequired
idstringNo
namestringNo
namespaceIdstringNo

v1beta1CheckResourcePermissionRequest

NameTypeDescriptionRequired
objectIdstringNo
objectNamespacestringNo
permissionstringNo
resourcePermissions[ v1beta1ResourcePermission ]No

v1beta1CheckResourcePermissionResponse

NameTypeDescriptionRequired
statusbooleanNo
resourcePermissions[ CheckResourcePermissionResponseResourcePermissionResponse ]No

v1beta1CreateActionResponse

NameTypeDescriptionRequired
actionv1beta1ActionNo

v1beta1CreateGroupResponse

NameTypeDescriptionRequired
groupv1beta1GroupNo

v1beta1CreateMetadataKeyResponse

NameTypeDescriptionRequired
metadatakeyv1beta1MetadataKeyNo

v1beta1CreateNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1CreateOrganizationResponse

NameTypeDescriptionRequired
organizationv1beta1OrganizationNo

v1beta1CreatePolicyResponse

NameTypeDescriptionRequired
policies[ v1beta1Policy ]No

v1beta1CreateProjectResponse

NameTypeDescriptionRequired
projectv1beta1ProjectNo

v1beta1CreateRelationResponse

NameTypeDescriptionRequired
relationv1beta1RelationNo

v1beta1CreateResourceResponse

NameTypeDescriptionRequired
resourcev1beta1ResourceNo

v1beta1CreateRoleResponse

NameTypeDescriptionRequired
rolev1beta1RoleNo

v1beta1CreateUserResponse

NameTypeDescriptionRequired
userv1beta1UserNo

v1beta1DeleteRelationResponse

NameTypeDescriptionRequired
messagestringNo

v1beta1GetCurrentUserResponse

NameTypeDescriptionRequired
userv1beta1UserNo

v1beta1GetGroupResponse

NameTypeDescriptionRequired
groupv1beta1GroupNo

v1beta1GetNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1GetOrganizationResponse

NameTypeDescriptionRequired
organizationv1beta1OrganizationNo

v1beta1GetProjectResponse

NameTypeDescriptionRequired
projectv1beta1ProjectNo

v1beta1GetRelationResponse

NameTypeDescriptionRequired
relationv1beta1RelationNo

v1beta1GetResourceResponse

NameTypeDescriptionRequired
resourcev1beta1ResourceNo

v1beta1GetUserResponse

NameTypeDescriptionRequired
userv1beta1UserNo

v1beta1Group

NameTypeDescriptionRequired
idstringNo
namestringNo
slugstringNo
orgIdstringNo
metadataobjectNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1GroupRelation

NameTypeDescriptionRequired
subjectTypestringNo
rolestringNo
userv1beta1UserNo
groupv1beta1GroupNo

v1beta1GroupRequestBody

NameTypeDescriptionRequired
namestringNo
slugstringNo
metadataobjectNo
orgIdstringNo

v1beta1ListActionsResponse

NameTypeDescriptionRequired
actions[ v1beta1Action ]No

v1beta1ListGroupRelationsResponse

NameTypeDescriptionRequired
relations[ v1beta1GroupRelation ]No

v1beta1ListGroupsResponse

NameTypeDescriptionRequired
groups[ v1beta1Group ]No

v1beta1ListNamespacesResponse

NameTypeDescriptionRequired
namespaces[ v1beta1Namespace ]No

v1beta1ListOrganizationAdminsResponse

NameTypeDescriptionRequired
users[ v1beta1User ]No

v1beta1ListOrganizationsResponse

NameTypeDescriptionRequired
organizations[ v1beta1Organization ]No

v1beta1ListPoliciesResponse

NameTypeDescriptionRequired
policies[ v1beta1Policy ]No

v1beta1ListProjectAdminsResponse

NameTypeDescriptionRequired
users[ v1beta1User ]No

v1beta1ListProjectsResponse

NameTypeDescriptionRequired
projects[ v1beta1Project ]No

v1beta1ListRelationsResponse

NameTypeDescriptionRequired
relations[ v1beta1Relation ]No

v1beta1ListResourcesResponse

NameTypeDescriptionRequired
resources[ v1beta1Resource ]No

v1beta1ListRolesResponse

NameTypeDescriptionRequired
roles[ v1beta1Role ]No

v1beta1ListUserGroupsResponse

NameTypeDescriptionRequired
groups[ v1beta1Group ]No

v1beta1ListUsersResponse

NameTypeDescriptionRequired
countintegerNo
users[ v1beta1User ]No

v1beta1MetadataKey

NameTypeDescriptionRequired
keystringNo
descriptionstringNo

v1beta1MetadataKeyRequestBody

NameTypeDescriptionRequired
keystringNo
descriptionstringNo

v1beta1Namespace

NameTypeDescriptionRequired
idstringNo
namestringNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1NamespaceRequestBody

NameTypeDescriptionRequired
idstringNo
namestringNo

v1beta1Organization

NameTypeDescriptionRequired
idstringNo
namestringNo
slugstringNo
metadataobjectNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1OrganizationRequestBody

NameTypeDescriptionRequired
namestringNo
slugstringNo
metadataobjectNo

v1beta1Policy

NameTypeDescriptionRequired
idstringNo
rolev1beta1RoleNo
actionv1beta1ActionNo
namespacev1beta1NamespaceNo
createdAtdateTimeNo
updatedAtdateTimeNo
namespaceIdstringNo
roleIdstringNo
actionIdstringNo

v1beta1PolicyRequestBody

NameTypeDescriptionRequired
roleIdstringNo
actionIdstringNo
namespaceIdstringNo

v1beta1Project

NameTypeDescriptionRequired
idstringNo
namestringNo
slugstringNo
orgIdstringNo
metadataobjectNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1ProjectRequestBody

NameTypeDescriptionRequired
namestringNo
slugstringNo
metadataobjectNo
orgIdstringNo

v1beta1Relation

NameTypeDescriptionRequired
idstringNo
objectIdstringNo
objectNamespacestringNo
subjectstringNo
roleNamestringNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1RelationRequestBody

NameTypeDescriptionRequired
objectIdstringNo
objectNamespacestringNo
subjectstringNo
roleNamestringNo

v1beta1Resource

NameTypeDescriptionRequired
idstringNo
namestringNo
projectv1beta1ProjectNo
organizationv1beta1OrganizationNo
namespacev1beta1NamespaceNo
createdAtdateTimeNo
updatedAtdateTimeNo
userv1beta1UserNo
urnstringNo

v1beta1ResourcePermission

NameTypeDescriptionRequired
objectIdstringNo
objectNamespacestringNo
permissionstringNo

v1beta1ResourceRequestBody

NameTypeDescriptionRequired
namestringNo
projectIdstringNo
namespaceIdstringNo
relations[ v1beta1Relation ]No

v1beta1Role

NameTypeDescriptionRequired
idstringNo
namestringNo
types[ string ]No
namespacev1beta1NamespaceNo
metadataobjectNo
createdAtdateTimeNo
updatedAtdateTimeNo
namespaceIdstringNo

v1beta1RoleRequestBody

NameTypeDescriptionRequired
idstringNo
namestringNo
types[ string ]No
namespaceIdstringNo
metadataobjectNo

v1beta1UpdateCurrentUserResponse

NameTypeDescriptionRequired
userv1beta1UserNo

v1beta1UpdateGroupResponse

NameTypeDescriptionRequired
groupv1beta1GroupNo

v1beta1UpdateNamespaceResponse

NameTypeDescriptionRequired
namespacev1beta1NamespaceNo

v1beta1UpdateOrganizationResponse

NameTypeDescriptionRequired
organizationv1beta1OrganizationNo

v1beta1UpdateProjectResponse

NameTypeDescriptionRequired
projectv1beta1ProjectNo

v1beta1UpdateResourceResponse

NameTypeDescriptionRequired
resourcev1beta1ResourceNo

v1beta1UpdateUserResponse

NameTypeDescriptionRequired
userv1beta1UserNo

v1beta1User

NameTypeDescriptionRequired
idstringNo
namestringNo
slugstringNo
emailstringNo
metadataobjectNo
createdAtdateTimeNo
updatedAtdateTimeNo

v1beta1UserRequestBody

NameTypeDescriptionRequired
namestringNo
emailstringNo
metadataobjectNo