ServiceAccount

ServiceAccount #

Package : spaceone.api.identity.v2



ServiceAccount #

ServiceAccount Methods:

MethodRequestResponse
createCreateServiceAccountRequestServiceAccountInfo
updateUpdateServiceAccountRequestServiceAccountInfo
update_secret_dataUpdateServiceAccountSecretRequestServiceAccountInfo
delete_secret_dataServiceAccountRequestServiceAccountInfo
deleteServiceAccountRequestEmpty
getServiceAccountRequestServiceAccountInfo
listServiceAccountSearchQueryServiceAccountsInfo
statServiceAccountStatQueryStruct

create #

POST /identity/v2/service-account/create

CreateServiceAccountRequest

  • name (string) Required

  • data (Struct) Required

  • provider (string) Required

  • project_id (string) Required

  • secret_schema_id (string)

  • secret_data (Struct)

  • tags (Struct)

  • trusted_account_id (string)

{
 "name": "woony-service-account",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "provider": "aws",
 "secret_schema_id": "aws-secret-access-key",
 "secret_data": {
   "aws_access_key_id": "a1b2c3d4e5f6",
   "aws_secret_access_key": "a1b2c3d4e5f6"
 },
 "project_id": "project-a1b2c3d4e5f6"
}

ServiceAccountInfo

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required

{
 "created_at": "2024-11-18T05:39:08.732Z",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "domain_id": "domain-a1b2c3d4e5f6",
 "name": "test-service-account",
 "project_id": "project-a1b2c3d4e5f6",
 "provider": "aws",
 "secret_id": "secret-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "service_account_id": "sa-a1b2c3d4e5f6",
 "state": "ACTIVE",
 "workspace_id": "workspace-a1b2c3d4e5f6"
}

update #

POST /identity/v2/service-account/update

UpdateServiceAccountRequest

  • service_account_id (string) Required

  • name (string)

  • data (Struct)

  • tags (Struct)

  • project_id (string)

{
 "service_account_id": "sa-a1b2c3d4e5f6",
 "project_id": "project-a1b2c3d4e5f6"
}

ServiceAccountInfo

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required

{
 "created_at": "2024-11-18T05:39:08.732Z",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "domain_id": "domain-a1b2c3d4e5f6",
 "name": "test-service-account",
 "project_id": "project-a1b2c3d4e5f6",
 "provider": "aws",
 "secret_id": "secret-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "service_account_id": "sa-a1b2c3d4e5f6",
 "state": "ACTIVE",
 "workspace_id": "workspace-a1b2c3d4e5f6"
}

update_secret_data #

POST /identity/v2/service-account/update-secret-data

UpdateServiceAccountSecretRequest

  • service_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_data (Struct) Required

  • trusted_account_id (string)

{
 "service_account_id": "sa-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "secret_data": {
   "aws_access_key_id": "a1b2c3d4e5f6",
   "aws_secret_access_key": "a1b2c3d4e5f6"
 }
}

ServiceAccountInfo

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required

{
 "created_at": "2024-11-18T05:39:08.732Z",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "domain_id": "domain-a1b2c3d4e5f6",
 "name": "test-service-account",
 "project_id": "project-a1b2c3d4e5f6",
 "provider": "aws",
 "secret_id": "secret-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "service_account_id": "sa-a1b2c3d4e5f6",
 "state": "ACTIVE",
 "workspace_id": "workspace-a1b2c3d4e5f6"
}

delete_secret_data #

POST /identity/v2/service-account/delete-secret-data

ServiceAccountRequest

  • service_account_id (string) Required
{
 "service_account_id": "sa-a1b2c3d4e5f6"
}

ServiceAccountInfo

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required

{
 "created_at": "2024-11-18T05:39:08.732Z",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "domain_id": "domain-a1b2c3d4e5f6",
 "name": "test-service-account",
 "project_id": "project-a1b2c3d4e5f6",
 "provider": "aws",
 "secret_id": "secret-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "service_account_id": "sa-a1b2c3d4e5f6",
 "state": "ACTIVE",
 "workspace_id": "workspace-a1b2c3d4e5f6"
}

delete #

POST /identity/v2/service-account/delete

ServiceAccountRequest

  • service_account_id (string) Required
{
 "service_account_id": "sa-a1b2c3d4e5f6"
}

get #

POST /identity/v2/service-account/get

ServiceAccountRequest

  • service_account_id (string) Required
{
 "service_account_id": "sa-a1b2c3d4e5f6"
}

ServiceAccountInfo

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required

{
 "created_at": "2024-11-18T05:39:08.732Z",
 "data": {
   "account_id": "a1b2c3d4e5f6"
 },
 "domain_id": "domain-a1b2c3d4e5f6",
 "name": "test-service-account",
 "project_id": "project-a1b2c3d4e5f6",
 "provider": "aws",
 "secret_id": "secret-a1b2c3d4e5f6",
 "secret_schema_id": "aws-secret-access-key",
 "service_account_id": "sa-a1b2c3d4e5f6",
 "state": "ACTIVE",
 "workspace_id": "workspace-a1b2c3d4e5f6"
}

list #

POST /identity/v2/service-account/list

ServiceAccountSearchQuery

  • query (Query)

  • service_account_id (string)

  • name (string)

  • state (string)

  • provider (string)

  • workspace_id (string)

  • project_id (string)

  • trusted_account_id (string)

  • secret_schema_id (string)

  • secret_id (string)

{
 "provider": "aws",
 "query": {
   "page": {
     "start": 1,
     "limit": 10
   },
   "sort": [
     {
       "key": "created_at",
       "desc": true
     }
   ]
 }
}

ServiceAccountsInfo

  • results (ServiceAccountInfo) Repeated Required

  • total_count (int32) Required

{
 "results": [
   {
     "created_at": "2024-11-18T06:03:09.191Z",
     "data": {
       "account_id": "a1b2c3d4e5f6"
     },
     "domain_id": "domain-a1b2c3d4e5f6",
     "name": "woony-service-account",
     "project_id": "project-a1b2c3d4e5f6",
     "provider": "aws",
     "service_account_id": "sa-a1b2c3d4e5f6",
     "state": "ACTIVE",
     "tags": {},
     "workspace_id": "workspace-a1b2c3d4e5f6"
   },
   {
     "created_at": "2024-11-18T05:48:49.783Z",
     "data": {
       "account_id": "g7h8i9j1k2l3"
     },
     "domain_id": "domain-a1b2c3d4e5f6",
     "name": "cloudforet-service-account",
     "project_id": "project-g7h8i9j1k2l3",
     "provider": "aws",
     "secret_id": "secret-g7h8i9j1k2l3",
     "secret_schema_id": "aws-secret-access-key",
     "service_account_id": "sa-g7h8i9j1k2l3",
     "state": "ACTIVE",
     "tags": {},
     "workspace_id": "workspace-g7h8i9j1k2l3"
   }
 ],
 "total_count": 2
}

stat #

POST /identity/v2/service-account/stat



Message #

CreateServiceAccountRequest #

  • name (string) Required

  • data (Struct) Required

  • provider (string) Required

  • project_id (string) Required

  • secret_schema_id (string)

  • secret_data (Struct)

  • tags (Struct)

  • trusted_account_id (string)


ServiceAccountInfo #

  • service_account_id (string) Required

  • name (string) Required

  • state (State) Required

  • data (Struct) Required

  • provider (string) Required

  • tags (Struct) Required

  • reference_id (string) Required

  • is_managed (bool) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • project_id (string) Required

  • trusted_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_id (string) Required

  • created_at (string) Required

  • last_synced_at (string) Required

  • deleted_at (string) Required

  • inactivated_at (string) Required


ServiceAccountRequest #

  • service_account_id (string) Required


ServiceAccountSearchQuery #

  • query (Query)

  • service_account_id (string)

  • name (string)

  • state (string)

  • provider (string)

  • workspace_id (string)

  • project_id (string)

  • trusted_account_id (string)

  • secret_schema_id (string)

  • secret_id (string)


ServiceAccountStatQuery #

  • query (StatisticsQuery) Required


ServiceAccountsInfo #

  • results (ServiceAccountInfo) Repeated Required

  • total_count (int32) Required


UpdateServiceAccountRequest #

  • service_account_id (string) Required

  • name (string)

  • data (Struct)

  • tags (Struct)

  • project_id (string)


UpdateServiceAccountSecretRequest #

  • service_account_id (string) Required

  • secret_schema_id (string) Required

  • secret_data (Struct) Required

  • trusted_account_id (string)


Calendar December 3, 2024
Edit Edit this page