1. Packages
  2. Airbyte Provider
  3. API Docs
  4. getPermission
airbyte 0.7.0-beta2 published on Friday, Mar 7, 2025 by airbytehq

airbyte.getPermission

Explore with Pulumi AI

airbyte logo
airbyte 0.7.0-beta2 published on Friday, Mar 7, 2025 by airbytehq

    Permission DataSource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as airbyte from "@pulumi/airbyte";
    
    const myPermission = airbyte.getPermission({
        permissionId: "...my_permission_id...",
    });
    
    import pulumi
    import pulumi_airbyte as airbyte
    
    my_permission = airbyte.get_permission(permission_id="...my_permission_id...")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/airbyte/airbyte"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := airbyte.LookupPermission(ctx, &airbyte.LookupPermissionArgs{
    			PermissionId: "...my_permission_id...",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Airbyte = Pulumi.Airbyte;
    
    return await Deployment.RunAsync(() => 
    {
        var myPermission = Airbyte.GetPermission.Invoke(new()
        {
            PermissionId = "...my_permission_id...",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.airbyte.AirbyteFunctions;
    import com.pulumi.airbyte.inputs.GetPermissionArgs;
    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 myPermission = AirbyteFunctions.getPermission(GetPermissionArgs.builder()
                .permissionId("...my_permission_id...")
                .build());
    
        }
    }
    
    variables:
      myPermission:
        fn::invoke:
          function: airbyte:getPermission
          arguments:
            permissionId: '...my_permission_id...'
    

    Using getPermission

    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 getPermission(args: GetPermissionArgs, opts?: InvokeOptions): Promise<GetPermissionResult>
    function getPermissionOutput(args: GetPermissionOutputArgs, opts?: InvokeOptions): Output<GetPermissionResult>
    def get_permission(permission_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPermissionResult
    def get_permission_output(permission_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPermissionResult]
    func LookupPermission(ctx *Context, args *LookupPermissionArgs, opts ...InvokeOption) (*LookupPermissionResult, error)
    func LookupPermissionOutput(ctx *Context, args *LookupPermissionOutputArgs, opts ...InvokeOption) LookupPermissionResultOutput

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

    public static class GetPermission 
    {
        public static Task<GetPermissionResult> InvokeAsync(GetPermissionArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionResult> Invoke(GetPermissionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
    public static Output<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: airbyte:index/getPermission:getPermission
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getPermission Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    PermissionId string
    PermissionType string
    Describes what actions/endpoints the permission entitles to
    UserId string
    Internal Airbyte user ID
    WorkspaceId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    PermissionId string
    PermissionType string
    Describes what actions/endpoints the permission entitles to
    UserId string
    Internal Airbyte user ID
    WorkspaceId string
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    permissionId String
    permissionType String
    Describes what actions/endpoints the permission entitles to
    userId String
    Internal Airbyte user ID
    workspaceId String
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    permissionId string
    permissionType string
    Describes what actions/endpoints the permission entitles to
    userId string
    Internal Airbyte user ID
    workspaceId string
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    permission_id str
    permission_type str
    Describes what actions/endpoints the permission entitles to
    user_id str
    Internal Airbyte user ID
    workspace_id str
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    permissionId String
    permissionType String
    Describes what actions/endpoints the permission entitles to
    userId String
    Internal Airbyte user ID
    workspaceId String

    Package Details

    Repository
    airbyte airbytehq/terraform-provider-airbyte
    License
    Notes
    This Pulumi package is based on the airbyte Terraform Provider.
    airbyte logo
    airbyte 0.7.0-beta2 published on Friday, Mar 7, 2025 by airbytehq