1. Packages
  2. OVH
  3. API Docs
  4. Iam
  5. getReferenceResourceType
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.Iam.getReferenceResourceType

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

Use this data source to list all the IAM resource types.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const types = ovh.Iam.getReferenceResourceType({});
Copy
import pulumi
import pulumi_ovh as ovh

types = ovh.Iam.get_reference_resource_type()
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iam.GetReferenceResourceType(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var types = Ovh.Iam.GetReferenceResourceType.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Iam.IamFunctions;
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 types = IamFunctions.getReferenceResourceType(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);

    }
}
Copy
variables:
  types:
    fn::invoke:
      function: ovh:Iam:getReferenceResourceType
      arguments: {}
Copy

Using getReferenceResourceType

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 getReferenceResourceType(opts?: InvokeOptions): Promise<GetReferenceResourceTypeResult>
function getReferenceResourceTypeOutput(opts?: InvokeOptions): Output<GetReferenceResourceTypeResult>
Copy
def get_reference_resource_type(opts: Optional[InvokeOptions] = None) -> GetReferenceResourceTypeResult
def get_reference_resource_type_output(opts: Optional[InvokeOptions] = None) -> Output[GetReferenceResourceTypeResult]
Copy
func GetReferenceResourceType(ctx *Context, opts ...InvokeOption) (*GetReferenceResourceTypeResult, error)
func GetReferenceResourceTypeOutput(ctx *Context, opts ...InvokeOption) GetReferenceResourceTypeResultOutput
Copy

> Note: This function is named GetReferenceResourceType in the Go SDK.

public static class GetReferenceResourceType 
{
    public static Task<GetReferenceResourceTypeResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetReferenceResourceTypeResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetReferenceResourceTypeResult> getReferenceResourceType(InvokeOptions options)
public static Output<GetReferenceResourceTypeResult> getReferenceResourceType(InvokeOptions options)
Copy
fn::invoke:
  function: ovh:Iam/getReferenceResourceType:getReferenceResourceType
  arguments:
    # arguments dictionary
Copy

getReferenceResourceType Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Types List<string>
List of resource types
Id string
The provider-assigned unique ID for this managed resource.
Types []string
List of resource types
id String
The provider-assigned unique ID for this managed resource.
types List<String>
List of resource types
id string
The provider-assigned unique ID for this managed resource.
types string[]
List of resource types
id str
The provider-assigned unique ID for this managed resource.
types Sequence[str]
List of resource types
id String
The provider-assigned unique ID for this managed resource.
types List<String>
List of resource types

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud