GetResourceType

Updated at:

Queries the details of a specified resource type.

Operation description

This topic provides an example on how to query the details of the ALIYUN::ROS::WaitConditionHandle resource type.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ros:GetResourceType

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceType

string

Yes

The resource type. For more information about the resource types supported by Resource Orchestration Service (ROS), see Resource type index.

ALIYUN::ROS::WaitConditionHandle

VersionId

string

No

The version ID. Specify this parameter to query a specific version of the resource type. Otherwise, the resource type is queried.

Note

Currently, only modules support versions.

v1

For more information about common request parameters, see Common parameters.

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

A28FBA2E-B6B3-5822-AA45-AB875EF23641

Attributes

object

The return value of the resource.

See the example

ResourceType

string

The resource type.

ALIYUN::ROS::WaitConditionHandle

Properties

object

The properties of the resource.

See the example

SupportDriftDetection

boolean

Specifies whether the resource supports drift detection. Valid values:

  • true: Supported.

  • false: Not supported.

false

SupportScratchDetection

boolean

Specifies whether the resource supports resource scenarios. Valid values:

  • true: Supported.

  • false: Not supported.

false

EntityType

string

The entity type. Valid values:

  • Resource: regular resource type. For more information, see Resources.

  • DataSource: data source resource type. For more information, see Data source resources.

  • Module: module.

Valid values:

  • Resource :

    Resource

  • Module :

    Module

  • DataSource :

    DataSource

Resource

Provider

string

The provider of the resource type. Valid values:

  • ROS: Resource Orchestration Service.

  • Self: the user.

Valid values:

  • ROS :

    ROS

  • Self :

    Self

ROS

Description

string

The description of the resource type.

It is a demo.

DefaultVersionId

string

The default version ID.

Note

This parameter is returned only when the resource type is queried.

v1

LatestVersionId

string

The latest version ID.

Note

This parameter is returned only when the resource type is queried.

v10

CreateTime

string

The creation time. The time is displayed in UTC+0 in the ISO 8601 standard without the trailing Z, in the YYYY-MM-DDThh:mm:ss format.

2023-02-24T08:25:21

UpdateTime

string

The update time. The time is displayed in UTC+0 in the ISO 8601 standard without the trailing Z, in the YYYY-MM-DDThh:mm:ss format.

2023-02-24T08:25:21

TotalVersionCount

integer

The total number of versions.

Note

This parameter is returned only when the resource type is queried.

10

IsDefaultVersion

boolean

Specifies whether the version is the default version. Valid values:

  • true: The version is the default version.

  • false: The version is not the default version.

Note

This parameter is returned only when a resource type version is queried.

Valid values:

  • true :

    true

  • false :

    false

true

TemplateBody

string

The template body of the module.

Note

This parameter is returned only when a resource type version is queried.

{"ROSTemplateFormatVersion":"2015-09-01"}

Examples

Success response

JSON format

{
  "RequestId": "A28FBA2E-B6B3-5822-AA45-AB875EF23641",
  "Attributes": {
    "test": "test",
    "test2": 1
  },
  "ResourceType": "ALIYUN::ROS::WaitConditionHandle",
  "Properties": {
    "test": "test",
    "test2": 1
  },
  "SupportDriftDetection": false,
  "SupportScratchDetection": false,
  "EntityType": "Resource",
  "Provider": "ROS",
  "Description": "It is a demo.",
  "DefaultVersionId": "v1",
  "LatestVersionId": "v10",
  "CreateTime": "2023-02-24T08:25:21\n",
  "UpdateTime": "2023-02-24T08:25:21\n",
  "TotalVersionCount": 10,
  "IsDefaultVersion": true,
  "TemplateBody": "{\"ROSTemplateFormatVersion\":\"2015-09-01\"}"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.