1. Packages
  2. Scaleway
  3. API Docs
  4. getIamApplication
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.getIamApplication

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Gets information about an existing IAM application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    // Get info by name
    const findByName = scaleway.getIamApplication({
        name: "foobar",
    });
    // Get info by application ID
    const findById = scaleway.getIamApplication({
        applicationId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Get info by name
    find_by_name = scaleway.get_iam_application(name="foobar")
    # Get info by application ID
    find_by_id = scaleway.get_iam_application(application_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get info by name
    		_, err := scaleway.LookupIamApplication(ctx, &scaleway.LookupIamApplicationArgs{
    			Name: pulumi.StringRef("foobar"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Get info by application ID
    		_, err = scaleway.LookupIamApplication(ctx, &scaleway.LookupIamApplicationArgs{
    			ApplicationId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Get info by name
        var findByName = Scaleway.GetIamApplication.Invoke(new()
        {
            Name = "foobar",
        });
    
        // Get info by application ID
        var findById = Scaleway.GetIamApplication.Invoke(new()
        {
            ApplicationId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetIamApplicationArgs;
    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) {
            // Get info by name
            final var findByName = ScalewayFunctions.getIamApplication(GetIamApplicationArgs.builder()
                .name("foobar")
                .build());
    
            // Get info by application ID
            final var findById = ScalewayFunctions.getIamApplication(GetIamApplicationArgs.builder()
                .applicationId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      # Get info by name
      findByName:
        fn::invoke:
          Function: scaleway:getIamApplication
          Arguments:
            name: foobar
      # Get info by application ID
      findById:
        fn::invoke:
          Function: scaleway:getIamApplication
          Arguments:
            applicationId: 11111111-1111-1111-1111-111111111111
    

    Using getIamApplication

    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 getIamApplication(args: GetIamApplicationArgs, opts?: InvokeOptions): Promise<GetIamApplicationResult>
    function getIamApplicationOutput(args: GetIamApplicationOutputArgs, opts?: InvokeOptions): Output<GetIamApplicationResult>
    def get_iam_application(application_id: Optional[str] = None,
                            name: Optional[str] = None,
                            organization_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetIamApplicationResult
    def get_iam_application_output(application_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            organization_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetIamApplicationResult]
    func LookupIamApplication(ctx *Context, args *LookupIamApplicationArgs, opts ...InvokeOption) (*LookupIamApplicationResult, error)
    func LookupIamApplicationOutput(ctx *Context, args *LookupIamApplicationOutputArgs, opts ...InvokeOption) LookupIamApplicationResultOutput

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

    public static class GetIamApplication 
    {
        public static Task<GetIamApplicationResult> InvokeAsync(GetIamApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetIamApplicationResult> Invoke(GetIamApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamApplicationResult> getIamApplication(GetIamApplicationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getIamApplication:getIamApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApplicationId string

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    Name string
    The name of the IAM application.
    OrganizationId string
    organization_id) The ID of the Organization the application is associated with.
    ApplicationId string

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    Name string
    The name of the IAM application.
    OrganizationId string
    organization_id) The ID of the Organization the application is associated with.
    applicationId String

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    name String
    The name of the IAM application.
    organizationId String
    organization_id) The ID of the Organization the application is associated with.
    applicationId string

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    name string
    The name of the IAM application.
    organizationId string
    organization_id) The ID of the Organization the application is associated with.
    application_id str

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    name str
    The name of the IAM application.
    organization_id str
    organization_id) The ID of the Organization the application is associated with.
    applicationId String

    The ID of the IAM application.

    Note You must specify at least one: name and/or application_id.

    name String
    The name of the IAM application.
    organizationId String
    organization_id) The ID of the Organization the application is associated with.

    getIamApplication Result

    The following output properties are available:

    CreatedAt string
    Description string
    Editable bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<string>
    UpdatedAt string
    ApplicationId string
    Name string
    OrganizationId string
    CreatedAt string
    Description string
    Editable bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []string
    UpdatedAt string
    ApplicationId string
    Name string
    OrganizationId string
    createdAt String
    description String
    editable Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    updatedAt String
    applicationId String
    name String
    organizationId String
    createdAt string
    description string
    editable boolean
    id string
    The provider-assigned unique ID for this managed resource.
    tags string[]
    updatedAt string
    applicationId string
    name string
    organizationId string
    created_at str
    description str
    editable bool
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[str]
    updated_at str
    application_id str
    name str
    organization_id str
    createdAt String
    description String
    editable Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<String>
    updatedAt String
    applicationId String
    name String
    organizationId String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse