1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getIamService
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getIamService

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Provides details of a given HSDP IAM service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const myService = hsdp.getIamService({
        serviceId: "service1@myorg.philips-healthsuite.com",
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    my_service = hsdp.get_iam_service(service_id="service1@myorg.philips-healthsuite.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hsdp.LookupIamService(ctx, &hsdp.LookupIamServiceArgs{
    			ServiceId: "service1@myorg.philips-healthsuite.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var myService = Hsdp.GetIamService.Invoke(new()
        {
            ServiceId = "service1@myorg.philips-healthsuite.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetIamServiceArgs;
    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 myService = HsdpFunctions.getIamService(GetIamServiceArgs.builder()
                .serviceId("service1@myorg.philips-healthsuite.com")
                .build());
    
        }
    }
    
    variables:
      myService:
        fn::invoke:
          function: hsdp:getIamService
          arguments:
            serviceId: service1@myorg.philips-healthsuite.com
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const service1Uuid = data.hsdp_iam_service.my_service.uuid;
    
    import pulumi
    
    pulumi.export("service1Uuid", data["hsdp_iam_service"]["my_service"]["uuid"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("service1Uuid", data.Hsdp_iam_service.My_service.Uuid)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["service1Uuid"] = data.Hsdp_iam_service.My_service.Uuid,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            ctx.export("service1Uuid", data.hsdp_iam_service().my_service().uuid());
        }
    }
    
    outputs:
      service1Uuid: ${data.hsdp_iam_service.my_service.uuid}
    

    Error conditions

    If the service does not fall under the given organization administration lookup may fail. In that case the lookup will return the following error

    responseCode: 4010

    Using getIamService

    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 getIamService(args: GetIamServiceArgs, opts?: InvokeOptions): Promise<GetIamServiceResult>
    function getIamServiceOutput(args: GetIamServiceOutputArgs, opts?: InvokeOptions): Output<GetIamServiceResult>
    def get_iam_service(id: Optional[str] = None,
                        service_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetIamServiceResult
    def get_iam_service_output(id: Optional[pulumi.Input[str]] = None,
                        service_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetIamServiceResult]
    func LookupIamService(ctx *Context, args *LookupIamServiceArgs, opts ...InvokeOption) (*LookupIamServiceResult, error)
    func LookupIamServiceOutput(ctx *Context, args *LookupIamServiceOutputArgs, opts ...InvokeOption) LookupIamServiceResultOutput

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

    public static class GetIamService 
    {
        public static Task<GetIamServiceResult> InvokeAsync(GetIamServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetIamServiceResult> Invoke(GetIamServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamServiceResult> getIamService(GetIamServiceArgs args, InvokeOptions options)
    public static Output<GetIamServiceResult> getIamService(GetIamServiceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getIamService:getIamService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceId string
    The service ID of the service in HSDP IAM
    Id string
    ServiceId string
    The service ID of the service in HSDP IAM
    Id string
    serviceId String
    The service ID of the service in HSDP IAM
    id String
    serviceId string
    The service ID of the service in HSDP IAM
    id string
    service_id str
    The service ID of the service in HSDP IAM
    id str
    serviceId String
    The service ID of the service in HSDP IAM
    id String

    getIamService Result

    The following output properties are available:

    ApplicationId string
    The application ID associated with this sefvice
    DefaultScopes List<string>
    The default scopes of this service
    Description string
    The service description
    ExpiresOn string
    When the service expires (string)
    Id string
    Name string
    The name of the service
    OrganizationId string
    The organization ID associated with this service
    Scopes List<string>
    The scopes assigned to this service
    ServiceId string
    Uuid string
    The UUID of the user
    ApplicationId string
    The application ID associated with this sefvice
    DefaultScopes []string
    The default scopes of this service
    Description string
    The service description
    ExpiresOn string
    When the service expires (string)
    Id string
    Name string
    The name of the service
    OrganizationId string
    The organization ID associated with this service
    Scopes []string
    The scopes assigned to this service
    ServiceId string
    Uuid string
    The UUID of the user
    applicationId String
    The application ID associated with this sefvice
    defaultScopes List<String>
    The default scopes of this service
    description String
    The service description
    expiresOn String
    When the service expires (string)
    id String
    name String
    The name of the service
    organizationId String
    The organization ID associated with this service
    scopes List<String>
    The scopes assigned to this service
    serviceId String
    uuid String
    The UUID of the user
    applicationId string
    The application ID associated with this sefvice
    defaultScopes string[]
    The default scopes of this service
    description string
    The service description
    expiresOn string
    When the service expires (string)
    id string
    name string
    The name of the service
    organizationId string
    The organization ID associated with this service
    scopes string[]
    The scopes assigned to this service
    serviceId string
    uuid string
    The UUID of the user
    application_id str
    The application ID associated with this sefvice
    default_scopes Sequence[str]
    The default scopes of this service
    description str
    The service description
    expires_on str
    When the service expires (string)
    id str
    name str
    The name of the service
    organization_id str
    The organization ID associated with this service
    scopes Sequence[str]
    The scopes assigned to this service
    service_id str
    uuid str
    The UUID of the user
    applicationId String
    The application ID associated with this sefvice
    defaultScopes List<String>
    The default scopes of this service
    description String
    The service description
    expiresOn String
    When the service expires (string)
    id String
    name String
    The name of the service
    organizationId String
    The organization ID associated with this service
    scopes List<String>
    The scopes assigned to this service
    serviceId String
    uuid String
    The UUID of the user

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software