リソースグループ作成

Prev Next
Post
/api/resource_groups

リソースグループを作成します。
リソースグループ作成にはアカウント管理者以上の権限が必要です。

Security
API Key: ApiKeyAuth
Header parameter nameAuthorization

認証キーとなるAPI KEYをAuthorization: Token {{API KEY}}の形式でヘッダーにセットします。
API KEYがabc123の場合は、Authorization: Token abc123とします。
API KEYの作成方法は、TROCCO API KEYの作成を参照ください。

Body parameters
Expand All
object
name
string Required

リソースグループ名

Exampleサンプルリソースグループ
description
string

リソースグループの説明

Exampleこれはサンプルリソースグループの説明です。
teams
Array of object

チーム

Min items0
object
team_id
integer (int64)

チームID

Example1
role
string

ロール

Valid values[ "administrator", "editor", "operator", "viewer" ]
Exampleadministrator
Responses
201

作成したリソースグループの詳細を返します。

Expand All
object
id
integer (int64)

リソースグループIDです。

Example1
name
string

リソースグループ名です。

Exampleresource group
description
string | null

メモです。

Exampledescription
teams
Array of object

チームです。

Min items0
object
team_id
integer (int64)

チームIDです。

Example1
role
string

ロールです。

Valid values[ "administrator", "editor", "operator", "viewer" ]
Exampleadministrator
created_at
string

リソースグループの作成日時です。

Example2023-08-23T03:00:00.000+09:00
updated_at
string

リソースグループの更新日時です。

Example2023-08-23T03:00:00.000+09:00
400

リソースグループ管理者が0人でリクエストしているなど、不正なリクエストです。

401

リソースグループ作成権限がないか、API KEYが不正です。