CloudServiceType #
A CloudServiceType is a classification with hierarchical information of CloudService
. A CloudServiceType provides information about which group
a specific Resource
belongs to and which Services
are in it.
Package : spaceone.api.inventory.v1
CloudServiceType #
CloudServiceType Methods:
create #
Creates a new CloudServiceType. You must specify the name
, provider
, and group
parameters to create a CloudServiceType. One or several CloudServiceTypes exist in a specific group
, and each CloudServiceType is identified by the name
parameter.
POST /inventory/v1/cloud-service-type/create
name (string)
Required
provider (string)
Required
group (string)
Required
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
metadata (Struct)
labels (ListValue)
tags (Struct)
{
"name": "API-TEST",
"provider": "aws",
"group": "APIGateway",
"service_code": "AmazonApiGateway",
"is_primary": true,
"is_major": true,
"resource_type": "inventory.CloudService",
"metadata": {},
"labels": [
"Networking"
],
"tags": {
"a": "b"
}
}
cloud_service_type_id (string)
Required
name (string)
Required
provider (string)
Required
group (string)
Required
cloud_service_type_key (string)
Required
service_code (string)
Required
is_primary (bool)
Required
is_major (bool)
Required
resource_type (string)
Required
metadata (Struct)
Required
tags (Struct)
Required
labels (ListValue)
Required
domain_id (string)
Required
workspace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8",
"name": "API-TEST",
"provider": "aws",
"group": "APIGateway",
"cloud_service_type_key": "aws.APIGateway.API-TEST",
"service_code": "AmazonApiGateway",
"is_primary": true,
"is_major": true,
"resource_type": "inventory.CloudService",
"metadata": {},
"tags": {
"a": "b"
},
"labels": [
"Networking"
],
"domain_id": "domain-58010aa2e451",
"workspace_id": "workspace-abcde12345",
"created_at": "2022-06-22T01:38:16.301Z",
"updated_at": "2022-06-22T01:38:16.301Z"
}
update #
Updates a specific CloudServiceType. You can make changes in CloudServiceType settings, except for name
, provider
and group
. In particular, you can set the CloudServiceType’s priority in a group
.
POST /inventory/v1/cloud-service-type/update
cloud_service_type_id (string)
Required
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
metadata (Struct)
labels (ListValue)
tags (Struct)
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8",
"service_code": "AmazonApi",
"metadata": {},
"labels": [
"Networking2"
],
"tags": {
"b": "c"
}
}
cloud_service_type_id (string)
Required
name (string)
Required
provider (string)
Required
group (string)
Required
cloud_service_type_key (string)
Required
service_code (string)
Required
is_primary (bool)
Required
is_major (bool)
Required
resource_type (string)
Required
metadata (Struct)
Required
tags (Struct)
Required
labels (ListValue)
Required
domain_id (string)
Required
workspace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8",
"name": "API-TEST",
"provider": "aws",
"group": "APIGateway",
"cloud_service_type_key": "aws.APIGateway.API-TEST",
"service_code": "AmazonApiGateway",
"is_primary": true,
"is_major": true,
"resource_type": "inventory.CloudService",
"metadata": {},
"tags": {
"a": "b"
},
"labels": [
"Networking"
],
"domain_id": "domain-58010aa2e451",
"workspace_id": "workspace-abcde12345",
"created_at": "2022-06-22T01:38:16.301Z",
"updated_at": "2022-06-22T01:38:16.301Z"
}
delete #
Deletes a specific CloudServiceType. You must specify the cloud_service_type_id
of the CloudServiceType to delete.
POST /inventory/v1/cloud-service-type/delete
- cloud_service_type_id (string)
Required
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8"
}
get #
Gets a specific CloudServiceType. Prints detailed information about the CloudServiceType.
POST /inventory/v1/cloud-service-type/get
- cloud_service_type_id (string)
Required
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8"
}
cloud_service_type_id (string)
Required
name (string)
Required
provider (string)
Required
group (string)
Required
cloud_service_type_key (string)
Required
service_code (string)
Required
is_primary (bool)
Required
is_major (bool)
Required
resource_type (string)
Required
metadata (Struct)
Required
tags (Struct)
Required
labels (ListValue)
Required
domain_id (string)
Required
workspace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"cloud_service_type_id": "cloud-svc-type-27dd73ac89f8",
"name": "API-TEST",
"provider": "aws",
"group": "APIGateway",
"cloud_service_type_key": "aws.APIGateway.API-TEST",
"service_code": "AmazonApiGateway",
"is_primary": true,
"is_major": true,
"resource_type": "inventory.CloudService",
"metadata": {},
"tags": {
"a": "b"
},
"labels": [
"Networking"
],
"domain_id": "domain-58010aa2e451",
"workspace_id": "workspace-abcde12345",
"created_at": "2022-06-22T01:38:16.301Z",
"updated_at": "2022-06-22T01:38:16.301Z"
}
list #
Gets a list of all CloudServiceTypes. You can use a query to get a filtered list of CloudServiceTypes.
POST /inventory/v1/cloud-service-type/list
query (Query)
cloud_service_type_id (string)
name (string)
provider (string)
group (string)
cloud_service_type_key (string)
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
workspace_id (string)
{
"query": {
"filter": [
{
"key": "provider",
"value": "aws",
"operator": "eq"
}
]
}
}
results (CloudServiceTypeInfo)
Repeated
Required
total_count (int32)
Required
{
"results": [
{
"cloud_service_type_id": "cloud-svc-type-7e1c113b39ff",
"name": "API",
"provider": "aws",
"group": "APIGateway",
"cloud_service_type_key": "aws.APIGateway.API",
"service_code": "AmazonApiGateway",
"is_primary": true,
"is_major": true,
"resource_type": "inventory.CloudService",
"metadata": {
},
"tags": {
"spaceone:icon": "https://spaceone.s3.ap-northeast-2.amazonaws.com/console-assets/icons/cloud-services/aws/Amazon-API-Gateway.svg"
},
"labels": [
"Networking"
],
"domain_id": "domain-58010aa2e451",
"workspace_id": "workspace-abcde12345",
"created_at": "2021-06-03T02:29:32.690Z",
"updated_at": "2022-06-22T00:04:45.477Z"
},
{
"cloud_service_type_id": "cloud-svc-type-64a0de601371",
"name": "Certificate",
"provider": "aws",
"group": "CertificateManager",
"cloud_service_type_key": "aws.CertificateManager.Certificate",
"service_code": "AWSCertificateManager",
"is_primary": true,
"resource_type": "inventory.CloudService",
"metadata": {
},
"tags": {
"spaceone:icon": "https://spaceone.s3.ap-northeast-2.amazonaws.com/console-assets/icons/cloud-services/aws/AWS-Certificate-Manager.svg"
},
"labels": [
"Security"
],
"domain_id": "domain-58010aa2e451",
"workspace_id": "workspace-abcde12345",
"created_at": "2021-06-03T02:29:53.052Z",
"updated_at": "2022-06-22T00:05:41.252Z"
}
],
"total_count": 2
}
stat #
POST /inventory/v1/cloud-service-type/stat
Message #
CloudServiceTypeInfo #
cloud_service_type_id (string)
Required
name (string)
Required
provider (string)
Required
group (string)
Required
cloud_service_type_key (string)
Required
service_code (string)
Required
is_primary (bool)
Required
is_major (bool)
Required
resource_type (string)
Required
metadata (Struct)
Required
tags (Struct)
Required
labels (ListValue)
Required
domain_id (string)
Required
workspace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
CloudServiceTypeQuery #
query (Query)
cloud_service_type_id (string)
name (string)
provider (string)
group (string)
cloud_service_type_key (string)
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
workspace_id (string)
CloudServiceTypeRequest #
cloud_service_type_id (string)
Required
CloudServiceTypeStatQuery #
query (StatisticsQuery)
Required
domain_id (string)
Required
CloudServiceTypesInfo #
results (CloudServiceTypeInfo)
Repeated
Required
total_count (int32)
Required
CreateCloudServiceTypeRequest #
name (string)
Required
provider (string)
Required
group (string)
Required
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
metadata (Struct)
labels (ListValue)
tags (Struct)
UpdateCloudServiceTypeRequest #
cloud_service_type_id (string)
Required
service_code (string)
is_primary (bool)
is_major (bool)
resource_type (string)
metadata (Struct)
labels (ListValue)
tags (Struct)