1. Packages
  2. OVH
  3. API Docs
  4. Iam
  5. getReferenceResourceType
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.Iam.getReferenceResourceType

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 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({});
    
    import pulumi
    import pulumi_ovh as ovh
    
    types = ovh.Iam.get_reference_resource_type()
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var types = Ovh.Iam.GetReferenceResourceType.Invoke();
    
    });
    
    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();
    
        }
    }
    
    variables:
      types:
        fn::invoke:
          Function: ovh:Iam:getReferenceResourceType
          Arguments: {}
    

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

    > 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)
    }
    public static CompletableFuture<GetReferenceResourceTypeResult> getReferenceResourceType(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Iam/getReferenceResourceType:getReferenceResourceType
      arguments:
        # arguments dictionary

    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.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud