Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.cloudcontrol.getResourceTypes
This data source provides Cloud Control Resource Type available to the user.What is Resource Type
NOTE: Available since v1.241.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.cloudcontrol.getResourceTypes({
product: "VPC",
ids: ["VSwitch"],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cloudcontrol.get_resource_types(product="VPC",
ids=["VSwitch"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudcontrol"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cloudcontrol.GetResourceTypes(ctx, &cloudcontrol.GetResourceTypesArgs{
Product: "VPC",
Ids: []string{
"VSwitch",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.CloudControl.GetResourceTypes.Invoke(new()
{
Product = "VPC",
Ids = new[]
{
"VSwitch",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudcontrol.CloudcontrolFunctions;
import com.pulumi.alicloud.cloudcontrol.inputs.GetResourceTypesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = CloudcontrolFunctions.getResourceTypes(GetResourceTypesArgs.builder()
.product("VPC")
.ids("VSwitch")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
variables:
default:
fn::invoke:
function: alicloud:cloudcontrol:getResourceTypes
arguments:
product: VPC
ids:
- VSwitch
Using getResourceTypes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResourceTypes(args: GetResourceTypesArgs, opts?: InvokeOptions): Promise<GetResourceTypesResult>
function getResourceTypesOutput(args: GetResourceTypesOutputArgs, opts?: InvokeOptions): Output<GetResourceTypesResult>
def get_resource_types(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
product: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourceTypesResult
def get_resource_types_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResourceTypesResult]
func GetResourceTypes(ctx *Context, args *GetResourceTypesArgs, opts ...InvokeOption) (*GetResourceTypesResult, error)
func GetResourceTypesOutput(ctx *Context, args *GetResourceTypesOutputArgs, opts ...InvokeOption) GetResourceTypesResultOutput
> Note: This function is named GetResourceTypes
in the Go SDK.
public static class GetResourceTypes
{
public static Task<GetResourceTypesResult> InvokeAsync(GetResourceTypesArgs args, InvokeOptions? opts = null)
public static Output<GetResourceTypesResult> Invoke(GetResourceTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResourceTypesResult> getResourceTypes(GetResourceTypesArgs args, InvokeOptions options)
public static Output<GetResourceTypesResult> getResourceTypes(GetResourceTypesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cloudcontrol/getResourceTypes:getResourceTypes
arguments:
# arguments dictionary
The following arguments are supported:
- Product string
- Product Code.
- Ids List<string>
- A list of Resource Type IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Product string
- Product Code.
- Ids []string
- A list of Resource Type IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- product String
- Product Code.
- ids List<String>
- A list of Resource Type IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- product string
- Product Code.
- ids string[]
- A list of Resource Type IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- product str
- Product Code.
- ids Sequence[str]
- A list of Resource Type IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- product String
- Product Code.
- ids List<String>
- A list of Resource Type IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getResourceTypes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Resource Type IDs.
- Product string
- Product Code.
- Types
List<Pulumi.
Ali Cloud. Cloud Control. Outputs. Get Resource Types Type> - A list of Resource Type Entries. Each element contains the following attributes:
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Resource Type IDs.
- Product string
- Product Code.
- Types
[]Get
Resource Types Type - A list of Resource Type Entries. Each element contains the following attributes:
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Resource Type IDs.
- product String
- Product Code.
- types
List<Get
Resource Types Type> - A list of Resource Type Entries. Each element contains the following attributes:
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Resource Type IDs.
- product string
- Product Code.
- types
Get
Resource Types Type[] - A list of Resource Type Entries. Each element contains the following attributes:
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Resource Type IDs.
- product str
- Product Code.
- types
Sequence[Get
Resource Types Type] - A list of Resource Type Entries. Each element contains the following attributes:
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Resource Type IDs.
- product String
- Product Code.
- types List<Property Map>
- A list of Resource Type Entries. Each element contains the following attributes:
- output
File String
Supporting Types
GetResourceTypesType
- Create
Only List<string>Properties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- Delete
Only List<string>Properties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- Filter
Properties List<string> - A collection of attributes that can be used as the filter parameter during the list operation.
- Get
Only List<string>Properties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- Get
Response List<string>Properties - The collection of properties returned by the query.
- Handlers
Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers - Supported resource operation information (including RAM permissions).
- Id string
- The ID of the resource supplied above.
- Infos
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Info> - Basic information about the resource type.
- List
Only List<string>Properties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- List
Response List<string>Properties - Enumerates the returned property collection.
- Primary
Identifier string - Resource ID
- Product string
- Product Code.
- Properties string
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- Public
Properties List<string> - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- Read
Only List<string>Properties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- Requireds List<string>
- Resource creation required parameter collection.
- Resource
Type string - The resource type.
- Sensitive
Info List<string>Properties - A collection of sensitive attributes, such as passwords.
- Update
Only List<string>Properties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- Update
Type List<string>Properties - A collection of properties that can be modified.
- Create
Only []stringProperties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- Delete
Only []stringProperties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- Filter
Properties []string - A collection of attributes that can be used as the filter parameter during the list operation.
- Get
Only []stringProperties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- Get
Response []stringProperties - The collection of properties returned by the query.
- Handlers
Get
Resource Types Type Handlers - Supported resource operation information (including RAM permissions).
- Id string
- The ID of the resource supplied above.
- Infos
[]Get
Resource Types Type Info - Basic information about the resource type.
- List
Only []stringProperties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- List
Response []stringProperties - Enumerates the returned property collection.
- Primary
Identifier string - Resource ID
- Product string
- Product Code.
- Properties string
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- Public
Properties []string - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- Read
Only []stringProperties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- Requireds []string
- Resource creation required parameter collection.
- Resource
Type string - The resource type.
- Sensitive
Info []stringProperties - A collection of sensitive attributes, such as passwords.
- Update
Only []stringProperties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- Update
Type []stringProperties - A collection of properties that can be modified.
- create
Only List<String>Properties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- delete
Only List<String>Properties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- filter
Properties List<String> - A collection of attributes that can be used as the filter parameter during the list operation.
- get
Only List<String>Properties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- get
Response List<String>Properties - The collection of properties returned by the query.
- handlers
Get
Resource Types Type Handlers - Supported resource operation information (including RAM permissions).
- id String
- The ID of the resource supplied above.
- infos
List<Get
Resource Types Type Info> - Basic information about the resource type.
- list
Only List<String>Properties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- list
Response List<String>Properties - Enumerates the returned property collection.
- primary
Identifier String - Resource ID
- product String
- Product Code.
- properties String
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- public
Properties List<String> - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- read
Only List<String>Properties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- requireds List<String>
- Resource creation required parameter collection.
- resource
Type String - The resource type.
- sensitive
Info List<String>Properties - A collection of sensitive attributes, such as passwords.
- update
Only List<String>Properties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- update
Type List<String>Properties - A collection of properties that can be modified.
- create
Only string[]Properties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- delete
Only string[]Properties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- filter
Properties string[] - A collection of attributes that can be used as the filter parameter during the list operation.
- get
Only string[]Properties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- get
Response string[]Properties - The collection of properties returned by the query.
- handlers
Get
Resource Types Type Handlers - Supported resource operation information (including RAM permissions).
- id string
- The ID of the resource supplied above.
- infos
Get
Resource Types Type Info[] - Basic information about the resource type.
- list
Only string[]Properties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- list
Response string[]Properties - Enumerates the returned property collection.
- primary
Identifier string - Resource ID
- product string
- Product Code.
- properties string
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- public
Properties string[] - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- read
Only string[]Properties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- requireds string[]
- Resource creation required parameter collection.
- resource
Type string - The resource type.
- sensitive
Info string[]Properties - A collection of sensitive attributes, such as passwords.
- update
Only string[]Properties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- update
Type string[]Properties - A collection of properties that can be modified.
- create_
only_ Sequence[str]properties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- delete_
only_ Sequence[str]properties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- filter_
properties Sequence[str] - A collection of attributes that can be used as the filter parameter during the list operation.
- get_
only_ Sequence[str]properties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- get_
response_ Sequence[str]properties - The collection of properties returned by the query.
- handlers
Get
Resource Types Type Handlers - Supported resource operation information (including RAM permissions).
- id str
- The ID of the resource supplied above.
- infos
Sequence[Get
Resource Types Type Info] - Basic information about the resource type.
- list_
only_ Sequence[str]properties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- list_
response_ Sequence[str]properties - Enumerates the returned property collection.
- primary_
identifier str - Resource ID
- product str
- Product Code.
- properties str
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- public_
properties Sequence[str] - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- read_
only_ Sequence[str]properties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- requireds Sequence[str]
- Resource creation required parameter collection.
- resource_
type str - The resource type.
- sensitive_
info_ Sequence[str]properties - A collection of sensitive attributes, such as passwords.
- update_
only_ Sequence[str]properties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- update_
type_ Sequence[str]properties - A collection of properties that can be modified.
- create
Only List<String>Properties - Create an operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the creation operation.
- delete
Only List<String>Properties - Delete operation private parameter collection. The attribute is not returned in the resource query operation, but the parameter is required in the delete operation.
- filter
Properties List<String> - A collection of attributes that can be used as the filter parameter during the list operation.
- get
Only List<String>Properties - Query operation private parameter collection. The attribute is not returned in the resource query operation, but the input parameter is required in the query operation.
- get
Response List<String>Properties - The collection of properties returned by the query.
- handlers Property Map
- Supported resource operation information (including RAM permissions).
- id String
- The ID of the resource supplied above.
- infos List<Property Map>
- Basic information about the resource type.
- list
Only List<String>Properties - Enumerate the operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters that need to be passed in the enumeration operation.
- list
Response List<String>Properties - Enumerates the returned property collection.
- primary
Identifier String - Resource ID
- product String
- Product Code.
- properties String
- Resource attribute definition, where key is the attribute name and value is the attribute details.
- public
Properties List<String> - A collection of public attributes, which are the basic attributes of the resource. Non-Operation private parameters.
- read
Only List<String>Properties - A set of read-only parameters. It is returned only in the list or get Operation. It is not used as an input parameter during creation and change.
- requireds List<String>
- Resource creation required parameter collection.
- resource
Type String - The resource type.
- sensitive
Info List<String>Properties - A collection of sensitive attributes, such as passwords.
- update
Only List<String>Properties - Update operation private parameter collection. The attributes are not returned in the resource query operation, but the parameters are required in the update operation.
- update
Type List<String>Properties - A collection of properties that can be modified.
GetResourceTypesTypeHandlers
- Creates
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers Create> - Create operation association information.
- Deletes
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers Delete> - Delete operation association information.
- Gets
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers Get> - Query operation association information.
- Lists
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers List> - List operation association information.
- Updates
List<Pulumi.
Ali Cloud. Cloud Control. Inputs. Get Resource Types Type Handlers Update> - Update operation association information.
- Creates
[]Get
Resource Types Type Handlers Create - Create operation association information.
- Deletes
[]Get
Resource Types Type Handlers Delete - Delete operation association information.
- Gets
[]Get
Resource Types Type Handlers Get - Query operation association information.
- Lists
[]Get
Resource Types Type Handlers List - List operation association information.
- Updates
[]Get
Resource Types Type Handlers Update - Update operation association information.
- creates
List<Get
Resource Types Type Handlers Create> - Create operation association information.
- deletes
List<Get
Resource Types Type Handlers Delete> - Delete operation association information.
- gets
List<Get
Resource Types Type Handlers Get> - Query operation association information.
- lists
List<Get
Resource Types Type Handlers List> - List operation association information.
- updates
List<Get
Resource Types Type Handlers Update> - Update operation association information.
- creates
Get
Resource Types Type Handlers Create[] - Create operation association information.
- deletes
Get
Resource Types Type Handlers Delete[] - Delete operation association information.
- gets
Get
Resource Types Type Handlers Get[] - Query operation association information.
- lists
Get
Resource Types Type Handlers List[] - List operation association information.
- updates
Get
Resource Types Type Handlers Update[] - Update operation association information.
- creates
Sequence[Get
Resource Types Type Handlers Create] - Create operation association information.
- deletes
Sequence[Get
Resource Types Type Handlers Delete] - Delete operation association information.
- gets
Sequence[Get
Resource Types Type Handlers Get] - Query operation association information.
- lists
Sequence[Get
Resource Types Type Handlers List] - List operation association information.
- updates
Sequence[Get
Resource Types Type Handlers Update] - Update operation association information.
- creates List<Property Map>
- Create operation association information.
- deletes List<Property Map>
- Delete operation association information.
- gets List<Property Map>
- Query operation association information.
- lists List<Property Map>
- List operation association information.
- updates List<Property Map>
- Update operation association information.
GetResourceTypesTypeHandlersCreate
- Permissions List<string>
- The collection of required RAM permission information.
- Permissions []string
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
- permissions string[]
- The collection of required RAM permission information.
- permissions Sequence[str]
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
GetResourceTypesTypeHandlersDelete
- Permissions List<string>
- The collection of required RAM permission information.
- Permissions []string
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
- permissions string[]
- The collection of required RAM permission information.
- permissions Sequence[str]
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
GetResourceTypesTypeHandlersGet
- Permissions List<string>
- The collection of required RAM permission information.
- Permissions []string
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
- permissions string[]
- The collection of required RAM permission information.
- permissions Sequence[str]
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
GetResourceTypesTypeHandlersList
- Permissions List<string>
- The collection of required RAM permission information.
- Permissions []string
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
- permissions string[]
- The collection of required RAM permission information.
- permissions Sequence[str]
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
GetResourceTypesTypeHandlersUpdate
- Permissions List<string>
- The collection of required RAM permission information.
- Permissions []string
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
- permissions string[]
- The collection of required RAM permission information.
- permissions Sequence[str]
- The collection of required RAM permission information.
- permissions List<String>
- The collection of required RAM permission information.
GetResourceTypesTypeInfo
- Charge
Type string - Payment formpaid (paid)(free).
- Delivery
Scope string - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- Description string
- Resource type description.
- Title string
- The resource type name.
- Charge
Type string - Payment formpaid (paid)(free).
- Delivery
Scope string - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- Description string
- Resource type description.
- Title string
- The resource type name.
- charge
Type String - Payment formpaid (paid)(free).
- delivery
Scope String - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- description String
- Resource type description.
- title String
- The resource type name.
- charge
Type string - Payment formpaid (paid)(free).
- delivery
Scope string - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- description string
- Resource type description.
- title string
- The resource type name.
- charge_
type str - Payment formpaid (paid)(free).
- delivery_
scope str - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- description str
- Resource type description.
- title str
- The resource type name.
- charge
Type String - Payment formpaid (paid)(free).
- delivery
Scope String - Delivery Levelcenter (centralized deployment level)region (regional deployment level)zone (Availability zone deployment level).
- description String
- Resource type description.
- title String
- The resource type name.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.