roleassignments

Get Role Assignments Aggregate

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
resourceGroupFilter
Array of strings unique
roleFilter
Array of strings unique
principalTypeFilter
Array of strings unique
Items Enum: "USER" "USER_GROUP" "SERVICE" "API_KEY" "SERVICE_ACCOUNT"
Array of objects (Principal) unique
harnessManagedFilter
Array of booleans unique
disabledFilter
Array of booleans unique
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/roleassignments/aggregate
Request samples
{
  • "resourceGroupFilter": [
    ],
  • "roleFilter": [
    ],
  • "principalTypeFilter": [
    ],
  • "principalFilter": [
    ],
  • "harnessManagedFilter": [
    ],
  • "disabledFilter": [
    ]
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

(Stub) Get Filtered Role Assignments

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0
pageSize
integer <int32> <= 100
Default: 50
sortOrders
Array of strings
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
resourceGroupFilter
Array of strings unique
roleFilter
Array of strings unique
principalTypeFilter
Array of strings unique
Items Enum: "USER" "USER_GROUP" "SERVICE" "API_KEY" "SERVICE_ACCOUNT"
Array of objects (Principal) unique
harnessManagedFilter
Array of booleans unique
disabledFilter
Array of booleans unique
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/roleassignments/filter
Request samples
{
  • "resourceGroupFilter": [
    ],
  • "roleFilter": [
    ],
  • "principalTypeFilter": [
    ],
  • "principalFilter": [
    ],
  • "harnessManagedFilter": [
    ],
  • "disabledFilter": [
    ]
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}

(Stub) Create Multiple Role Assignments

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
managed
boolean
Default: false
Request Body schema:
Array of objects (RoleAssignment)
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/roleassignments/multi/internal
Request samples
{
  • "roleAssignments": [
    ]
}
Response samples
{
  • "status": "SUCCESS",
  • "data": [
    ],
  • "metaData": { },
  • "correlationId": "string"
}

(Stub) Create Role Assignment

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
required
string
orgIdentifier
string
projectIdentifier
string
Request Body schema:
identifier
string
resourceGroupIdentifier
required
string
roleIdentifier
required
string
required
object (Principal)
disabled
boolean
managed
boolean
Responses
200

successful operation

400

Bad Request

500

Internal server error

post/ng/api/roleassignments
Request samples
{
  • "identifier": "string",
  • "resourceGroupIdentifier": "string",
  • "roleIdentifier": "string",
  • "principal": {
    },
  • "disabled": true,
  • "managed": true
}
Response samples
{
  • "status": "SUCCESS",
  • "data": {
    },
  • "metaData": { },
  • "correlationId": "string"
}