Organizational Units
No description given.
Endpoints
- get /api/v3/iam/organizational_units
- post /api/v3/iam/organizational_units
- delete /api/v3/iam/organizational_units/:resource_id
- get /api/v3/iam/organizational_units/:resource_id
- patch /api/v3/iam/organizational_units/:resource_id
- get /api/v3/iam/organizational_units/policies
get/api/v3/iam/organizational_units
Return a paginated list of iam/organizational_units
Input Schema
object
page?:
object
The page number, default to 1
number?: integer
The number of items per page, default to 1000
size?: integer
The sort order, comma separated list of fields. See sorting section for more details
sort?: string
Set to true to return the total number of items in the collection
count?: boolean
filter?:
object
id?: unknown
organization_id?: unknown
path?: unknown
description?: unknown
policies?: unknown
created_at?: unknown
updated_at?: unknown
root_only?: unknown
The fields to include in the response.
The key is the resource type and the value is an array of fields.
fields?: The key is the resource type and the value is an array of fields.
dictionary
Values: array
Typescript
type InputSchema = {
page?: {
// The page number, default to 1
number?: number;
// The number of items per page, default to 1000
size?: number;
};
// The sort order, comma separated list of fields. See sorting section for more details
sort?: string;
// Set to true to return the total number of items in the collection
count?: boolean;
filter?: {
id?: any;
organization_id?: any;
path?: any;
description?: any;
policies?: any;
created_at?: any;
updated_at?: any;
root_only?: any;
};
// The fields to include in the response.
// The key is the resource type and the value is an array of fields.
fields?: { [key: string]: Array<any> };
};
Output Schema
object
data:
array
Elements:
object
type: string
id?: string
attributes?:
object
id?: integer
organization_id?: integer
path?: string
description?: string
policies?: open struct
created_at?: datetime
updated_at?: datetime
relationships?: open struct
included?:
array
Elements: open struct
Typescript
type OutputSchema = {
data: Array<{
type: string;
id?: string;
attributes?: {
id?: number;
organization_id?: number;
path?: string;
description?: string;
policies?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
relationships?: Record<string, any>;
}>;
included?: Array<Record<string, any>>;
};
post/api/v3/iam/organizational_units
Create a new iam/organizational_units
Input Schema
object
data:
object
type: string
attributes:
object
id?: integer
organization_id?: integer
path?: string
description?: string
policies?: open struct
created_at?: datetime
updated_at?: datetime
Typescript
type InputSchema = {
data: {
type: string;
attributes: {
id?: number;
organization_id?: number;
path?: string;
description?: string;
policies?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
};
};
delete/api/v3/iam/organizational_units/:resource_id
Delete the iam/organizational_units
Input Schema
object
resource_id: integer
Typescript
type InputSchema = { resource_id: number };
get/api/v3/iam/organizational_units/:resource_id
Show a specific iam/organizational_units
Input Schema
object
resource_id: integer
included?:
array
Elements: string
fields?:
dictionary
Values: array
Typescript
type InputSchema = {
resource_id: number;
included?: Array<string>;
fields?: { [key: string]: Array<any> };
};
Output Schema
object
data:
object
type: string
id?: string
attributes?:
object
id?: integer
organization_id?: integer
path?: string
description?: string
policies?: open struct
created_at?: datetime
updated_at?: datetime
relationships?: open struct
included?:
array
Elements: open struct
Typescript
type OutputSchema = {
data: {
type: string;
id?: string;
attributes?: {
id?: number;
organization_id?: number;
path?: string;
description?: string;
policies?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
relationships?: Record<string, any>;
};
included?: Array<Record<string, any>>;
};
patch/api/v3/iam/organizational_units/:resource_id
Update a iam/organizational_units
Input Schema
object
resource_id: integer
data:
object
type: string
attributes:
object
id?: integer
organization_id?: integer
path?: string
description?: string
policies?: open struct
Typescript
type InputSchema = {
resource_id: number;
data: {
type: string;
attributes: {
id?: number;
organization_id?: number;
path?: string;
description?: string;
policies?: Record<string, any>;
};
};
};
get/api/v3/iam/organizational_units/policies
Return the list of policies for the given organizational unit. Policies are inherited from parent organizational units.
Input Schema
object
organization_id: unknown
path: unknown
Typescript
type InputSchema = { organization_id: any; path: any };