Resource

更新时间:
复制 MD 格式

Parameter

Type

Description

Example

object

Contains the configuration and status information for a resource group.

ResourceId

string

The unique identifier of the resource group.

eas-r-asdasdasd

ResourceName

string

The name of the resource group.

iot

ResourceType

string

The type of the resource group. Valid values:

  • Dedicated: A dedicated resource group.

  • SelfManaged: A self-managed resource group.

Dedicated

ClusterId

string

The ID of the cluster where the resource group is located.

cn-shanghai

CreateTime

string

The time the resource group was created, in ISO 8601 format.

2019-02-26T17:52:49Z

UpdateTime

string

The time the resource group was last updated, in ISO 8601 format.

2019-02-26T19:52:49Z

InstanceCount

integer

The total number of instances (prepaid and postpaid) in the resource group.

4

PrePaidInstanceCount

integer

The number of prepaid instances.

2

PostPaidInstanceCount

integer

The number of postpaid instances.

2

CpuCount

integer

The total number of CPU cores in the resource group.

64

GpuCount

integer

The total number of GPUs in the resource group.

1

Memory

integer

The total memory of the resource group, in MB.

8192

CpuUsed

integer

The number of used CPU cores in the resource group.

8

GpuUsed

number

The number of used GPUs in the resource group.

1

MemoryUsed

integer

The amount of used memory in the resource group, in MB.

2048

Status

string

The status of the resource group.

ResourceReady

Message

string

The latest status message for the resource group.

Resource is ready

ExtraData

object

Additional information.

{}

Vendor

string

The provider of the compute instances in the resource group, such as ECS.

ECS

Features

array

The features supported by the resource group.

string

A supported feature. Currently, only GpuShare (GPU sharing) is a valid value.

GpuShare

InstanceMaxAllocatableMemory

integer

The maximum allocatable memory per node in the resource group.

2048

InstanceMaxAllocatableGPU

number

The maximum number of allocatable GPUs per node.

2

InstanceMaxAllocatableCPU

integer

The maximum number of allocatable CPU cores per node.

16

UsageMode

string

The usage mode of the resource group.

ServiceCount

integer

The number of services deployed in the resource group.