Skip to content

Provide a api for List resource types #12572

@kiranchavala

Description

@kiranchavala

The required feature described as a wish

As a User/Admin/Operator I would like to know the resource types that are present in cloudstack

Currently, the listResourceDetails and listDetailOptions API requires the resource type parameter

https://cloudstack.apache.org/api/apidocs-4.22/apis/listResourceDetails.html
https://cloudstack.apache.org/api/apidocs-4.22/apis/listDetailOptions.html

Also If a User/Admin/Operator needs to add a detail to resource id they need the resource type parameter

https://cloudstack.apache.org/api/apidocs-4.22/apis/addResourceDetail.html

Currently there is no list of resourcetypes that present in present either is docs

It will be beneficial to the users if we can have a API call which can list the resourcetype in cloudstack

public enum ResourceObjectType {
UserVm(true, true, true),
Template(true, true, true),
VnfTemplate(false, false, true),
ISO(true, false, true),
Volume(true, true),
Snapshot(true, false),
Backup(true, false),
Network(true, true, true),
DomainRouter(false, false),
Nic(false, true),
LoadBalancer(true, true),
PortForwardingRule(true, true),
FirewallRule(true, true),
SecurityGroup(true, false),
SecurityGroupRule(true, false),
PublicIpAddress(true, true),
Project(true, false, true),
Account(true, false, true),
Vpc(true, true, true),
NetworkACL(true, true),
StaticRoute(true, false),
VMSnapshot(true, false),
RemoteAccessVpn(true, true),
Zone(false, true, true),
ServiceOffering(false, true),
Storage(false, true),
PrivateGateway(false, true),
NetworkACLList(false, true),
VpnGateway(false, true),
CustomerGateway(false, true),
VpnConnection(false, true),
User(true, true, true),
DiskOffering(false, true),
AutoScaleVmProfile(false, true),
AutoScaleVmGroup(false, true),
LBStickinessPolicy(false, true),
LBHealthCheckPolicy(false, true),
SnapshotPolicy(true, true),
GuestOsCategory(false, false, true),
GuestOs(false, true),
NetworkOffering(false, true),
VpcOffering(true, false),
Domain(true, false, true),
ObjectStore(false, false, true);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions