scaleway.iam.getApplication
Explore with Pulumi AI
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.iam.getApplication({
    name: "foobar",
});
// Get info by application ID
const findById = scaleway.iam.getApplication({
    applicationId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by name
find_by_name = scaleway.iam.get_application(name="foobar")
# Get info by application ID
find_by_id = scaleway.iam.get_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/iam"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get info by name
		_, err := iam.LookupApplication(ctx, &iam.LookupApplicationArgs{
			Name: pulumi.StringRef("foobar"),
		}, nil)
		if err != nil {
			return err
		}
		// Get info by application ID
		_, err = iam.LookupApplication(ctx, &iam.LookupApplicationArgs{
			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.Iam.GetApplication.Invoke(new()
    {
        Name = "foobar",
    });
    // Get info by application ID
    var findById = Scaleway.Iam.GetApplication.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.iam.IamFunctions;
import com.pulumi.scaleway.iam.inputs.GetApplicationArgs;
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 = IamFunctions.getApplication(GetApplicationArgs.builder()
            .name("foobar")
            .build());
        // Get info by application ID
        final var findById = IamFunctions.getApplication(GetApplicationArgs.builder()
            .applicationId("11111111-1111-1111-1111-111111111111")
            .build());
    }
}
variables:
  # Get info by name
  findByName:
    fn::invoke:
      function: scaleway:iam:getApplication
      arguments:
        name: foobar
  # Get info by application ID
  findById:
    fn::invoke:
      function: scaleway:iam:getApplication
      arguments:
        applicationId: 11111111-1111-1111-1111-111111111111
Using getApplication
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 getApplication(args: GetApplicationArgs, opts?: InvokeOptions): Promise<GetApplicationResult>
function getApplicationOutput(args: GetApplicationOutputArgs, opts?: InvokeOptions): Output<GetApplicationResult>def get_application(application_id: Optional[str] = None,
                    name: Optional[str] = None,
                    organization_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetApplicationResult
def get_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[GetApplicationResult]func LookupApplication(ctx *Context, args *LookupApplicationArgs, opts ...InvokeOption) (*LookupApplicationResult, error)
func LookupApplicationOutput(ctx *Context, args *LookupApplicationOutputArgs, opts ...InvokeOption) LookupApplicationResultOutput> Note: This function is named LookupApplication in the Go SDK.
public static class GetApplication 
{
    public static Task<GetApplicationResult> InvokeAsync(GetApplicationArgs args, InvokeOptions? opts = null)
    public static Output<GetApplicationResult> Invoke(GetApplicationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
public static Output<GetApplicationResult> getApplication(GetApplicationArgs args, InvokeOptions options)
fn::invoke:
  function: scaleway:iam/getApplication:getApplication
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Application
Id string The ID of the IAM application.
Note You must specify at least one:
nameand/orapplication_id.- Name string
 - The name of the IAM application.
 - Organization
Id string organization_id) The ID of the Organization the application is associated with.
- Application
Id string The ID of the IAM application.
Note You must specify at least one:
nameand/orapplication_id.- Name string
 - The name of the IAM application.
 - Organization
Id string organization_id) The ID of the Organization the application is associated with.
- application
Id String The ID of the IAM application.
Note You must specify at least one:
nameand/orapplication_id.- name String
 - The name of the IAM application.
 - organization
Id String organization_id) The ID of the Organization the application is associated with.
- application
Id string The ID of the IAM application.
Note You must specify at least one:
nameand/orapplication_id.- name string
 - The name of the IAM application.
 - organization
Id 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:
nameand/orapplication_id.- name str
 - The name of the IAM application.
 - organization_
id str organization_id) The ID of the Organization the application is associated with.
- application
Id String The ID of the IAM application.
Note You must specify at least one:
nameand/orapplication_id.- name String
 - The name of the IAM application.
 - organization
Id String organization_id) The ID of the Organization the application is associated with.
getApplication Result
The following output properties are available:
- Created
At string - Description string
 - Editable bool
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - List<string>
 - Updated
At string - Application
Id string - Name string
 - Organization
Id string 
- Created
At string - Description string
 - Editable bool
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - []string
 - Updated
At string - Application
Id string - Name string
 - Organization
Id string 
- created
At String - description String
 - editable Boolean
 - id String
 - The provider-assigned unique ID for this managed resource.
 - List<String>
 - updated
At String - application
Id String - name String
 - organization
Id String 
- created
At string - description string
 - editable boolean
 - id string
 - The provider-assigned unique ID for this managed resource.
 - string[]
 - updated
At string - application
Id string - name string
 - organization
Id string 
- created_
at str - description str
 - editable bool
 - id str
 - The provider-assigned unique ID for this managed resource.
 - Sequence[str]
 - updated_
at str - application_
id str - name str
 - organization_
id str 
- created
At String - description String
 - editable Boolean
 - id String
 - The provider-assigned unique ID for this managed resource.
 - List<String>
 - updated
At String - application
Id String - name String
 - organization
Id String 
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.