All Products
Search
Document Center

Resource Orchestration Service:ListResourceTypeVersions

Last Updated:Sep 12, 2024

Queries the versions of resource types, including the resource types created by you and provided by Resource Orchestration Service (ROS).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ros:ListResourceTypeVersionsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringYes

The resource type.

MODULE::MyOrganization::MyService::MyUsecase

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

B288A0BE-D927-4888-B0F7-B35EF84B6E6F
ResourceTypeVersionsarray<object>

The versions of the resource types.

object
Providerstring

The provider of the resource type. Valid values:

  • ROS: ROS
  • Self: yourself
ROS
EntityTypestring

The entity type. Only Module may be returned.

Module
ResourceTypestring

The resource type.

MODULE::MyOrganization::MyService::MyUsecase
IsDefaultVersionboolean

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

  • true
  • false
true
CreateTimestring

The time when the version was created. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.

2023-02-24T08:25:21
UpdateTimestring

The time when the version was updated. The time is displayed in UTC. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format.

2023-02-24T08:25:21
VersionIdstring

The version ID.

v1
Descriptionstring

The description of the version.

It is a demo.

Examples

Sample success responses

JSONformat

{
  "RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
  "ResourceTypeVersions": [
    {
      "Provider": "ROS",
      "EntityType": "Module",
      "ResourceType": "MODULE::MyOrganization::MyService::MyUsecase",
      "IsDefaultVersion": true,
      "CreateTime": "2023-02-24T08:25:21",
      "UpdateTime": "2023-02-24T08:25:21",
      "VersionId": "v1",
      "Description": "It is a demo."
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history