hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
hsdp.getIamService
Explore with Pulumi AI
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:
- service_
id str - The service ID of the service in HSDP IAM
- id str
getIamService Result
The following output properties are available:
- Application
Id string - The application ID associated with this sefvice
- Default
Scopes List<string> - The default scopes of this service
- Description string
- The service description
- Expires
On string - When the service expires (string)
- Id string
- Name string
- The name of the service
- Organization
Id string - The organization ID associated with this service
- Scopes List<string>
- The scopes assigned to this service
- Service
Id string - Uuid string
- The UUID of the user
- Application
Id string - The application ID associated with this sefvice
- Default
Scopes []string - The default scopes of this service
- Description string
- The service description
- Expires
On string - When the service expires (string)
- Id string
- Name string
- The name of the service
- Organization
Id string - The organization ID associated with this service
- Scopes []string
- The scopes assigned to this service
- Service
Id string - Uuid string
- The UUID of the user
- application
Id String - The application ID associated with this sefvice
- default
Scopes List<String> - The default scopes of this service
- description String
- The service description
- expires
On String - When the service expires (string)
- id String
- name String
- The name of the service
- organization
Id String - The organization ID associated with this service
- scopes List<String>
- The scopes assigned to this service
- service
Id String - uuid String
- The UUID of the user
- application
Id string - The application ID associated with this sefvice
- default
Scopes string[] - The default scopes of this service
- description string
- The service description
- expires
On string - When the service expires (string)
- id string
- name string
- The name of the service
- organization
Id string - The organization ID associated with this service
- scopes string[]
- The scopes assigned to this service
- service
Id 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
- application
Id String - The application ID associated with this sefvice
- default
Scopes List<String> - The default scopes of this service
- description String
- The service description
- expires
On String - When the service expires (string)
- id String
- name String
- The name of the service
- organization
Id String - The organization ID associated with this service
- scopes List<String>
- The scopes assigned to this service
- service
Id 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 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software