1. Packages
  2. Azure Classic
  3. API Docs
  4. healthcare
  5. getService

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.healthcare.getService

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Use this data source to access information about an existing Healthcare Service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.healthcare.getService({
        name: "example-healthcare_service",
        resourceGroupName: "example-resources",
        location: "westus2",
    });
    export const healthcareServiceId = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.healthcare.get_service(name="example-healthcare_service",
        resource_group_name="example-resources",
        location="westus2")
    pulumi.export("healthcareServiceId", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := healthcare.LookupService(ctx, &healthcare.LookupServiceArgs{
    			Name:              "example-healthcare_service",
    			ResourceGroupName: "example-resources",
    			Location:          "westus2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("healthcareServiceId", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.Healthcare.GetService.Invoke(new()
        {
            Name = "example-healthcare_service",
            ResourceGroupName = "example-resources",
            Location = "westus2",
        });
    
        return new Dictionary<string, object?>
        {
            ["healthcareServiceId"] = example.Apply(getServiceResult => getServiceResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.healthcare.HealthcareFunctions;
    import com.pulumi.azure.healthcare.inputs.GetServiceArgs;
    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 example = HealthcareFunctions.getService(GetServiceArgs.builder()
                .name("example-healthcare_service")
                .resourceGroupName("example-resources")
                .location("westus2")
                .build());
    
            ctx.export("healthcareServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:healthcare:getService
          Arguments:
            name: example-healthcare_service
            resourceGroupName: example-resources
            location: westus2
    outputs:
      healthcareServiceId: ${example.id}
    

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(location: Optional[str] = None,
                    name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(location: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    resource_group_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
    func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

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

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:healthcare/getService:getService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    The Azure Region where the Service is located.
    Name string
    Specifies the name of the Healthcare Service.
    ResourceGroupName string
    The name of the Resource Group in which the Healthcare Service exists.
    Location string
    The Azure Region where the Service is located.
    Name string
    Specifies the name of the Healthcare Service.
    ResourceGroupName string
    The name of the Resource Group in which the Healthcare Service exists.
    location String
    The Azure Region where the Service is located.
    name String
    Specifies the name of the Healthcare Service.
    resourceGroupName String
    The name of the Resource Group in which the Healthcare Service exists.
    location string
    The Azure Region where the Service is located.
    name string
    Specifies the name of the Healthcare Service.
    resourceGroupName string
    The name of the Resource Group in which the Healthcare Service exists.
    location str
    The Azure Region where the Service is located.
    name str
    Specifies the name of the Healthcare Service.
    resource_group_name str
    The name of the Resource Group in which the Healthcare Service exists.
    location String
    The Azure Region where the Service is located.
    name String
    Specifies the name of the Healthcare Service.
    resourceGroupName String
    The name of the Resource Group in which the Healthcare Service exists.

    getService Result

    The following output properties are available:

    AccessPolicyObjectIds List<string>
    AuthenticationConfigurations List<GetServiceAuthenticationConfiguration>
    An authentication_configuration block as defined below.
    CorsConfigurations List<GetServiceCorsConfiguration>
    A cors_configuration block as defined below.
    CosmosdbKeyVaultKeyVersionlessId string
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    CosmosdbThroughput int
    The provisioned throughput for the backing database.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The type of the service.
    Location string
    The Azure Region where the Service is located.
    Name string
    ResourceGroupName string
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    AccessPolicyObjectIds []string
    AuthenticationConfigurations []GetServiceAuthenticationConfiguration
    An authentication_configuration block as defined below.
    CorsConfigurations []GetServiceCorsConfiguration
    A cors_configuration block as defined below.
    CosmosdbKeyVaultKeyVersionlessId string
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    CosmosdbThroughput int
    The provisioned throughput for the backing database.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The type of the service.
    Location string
    The Azure Region where the Service is located.
    Name string
    ResourceGroupName string
    Tags map[string]string
    A mapping of tags to assign to the resource.
    accessPolicyObjectIds List<String>
    authenticationConfigurations List<GetServiceAuthenticationConfiguration>
    An authentication_configuration block as defined below.
    corsConfigurations List<GetServiceCorsConfiguration>
    A cors_configuration block as defined below.
    cosmosdbKeyVaultKeyVersionlessId String
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    cosmosdbThroughput Integer
    The provisioned throughput for the backing database.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The type of the service.
    location String
    The Azure Region where the Service is located.
    name String
    resourceGroupName String
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    accessPolicyObjectIds string[]
    authenticationConfigurations GetServiceAuthenticationConfiguration[]
    An authentication_configuration block as defined below.
    corsConfigurations GetServiceCorsConfiguration[]
    A cors_configuration block as defined below.
    cosmosdbKeyVaultKeyVersionlessId string
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    cosmosdbThroughput number
    The provisioned throughput for the backing database.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The type of the service.
    location string
    The Azure Region where the Service is located.
    name string
    resourceGroupName string
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    access_policy_object_ids Sequence[str]
    authentication_configurations Sequence[GetServiceAuthenticationConfiguration]
    An authentication_configuration block as defined below.
    cors_configurations Sequence[GetServiceCorsConfiguration]
    A cors_configuration block as defined below.
    cosmosdb_key_vault_key_versionless_id str
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    cosmosdb_throughput int
    The provisioned throughput for the backing database.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    The type of the service.
    location str
    The Azure Region where the Service is located.
    name str
    resource_group_name str
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    accessPolicyObjectIds List<String>
    authenticationConfigurations List<Property Map>
    An authentication_configuration block as defined below.
    corsConfigurations List<Property Map>
    A cors_configuration block as defined below.
    cosmosdbKeyVaultKeyVersionlessId String
    The versionless Key Vault Key ID for CMK encryption of the backing database.
    cosmosdbThroughput Number
    The provisioned throughput for the backing database.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The type of the service.
    location String
    The Azure Region where the Service is located.
    name String
    resourceGroupName String
    tags Map<String>
    A mapping of tags to assign to the resource.

    Supporting Types

    GetServiceAuthenticationConfiguration

    Audience string
    The intended audience to receive authentication tokens for the service.
    Authority string
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    SmartProxyEnabled bool
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?
    Audience string
    The intended audience to receive authentication tokens for the service.
    Authority string
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    SmartProxyEnabled bool
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?
    audience String
    The intended audience to receive authentication tokens for the service.
    authority String
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    smartProxyEnabled Boolean
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?
    audience string
    The intended audience to receive authentication tokens for the service.
    authority string
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    smartProxyEnabled boolean
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?
    audience str
    The intended audience to receive authentication tokens for the service.
    authority str
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    smart_proxy_enabled bool
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?
    audience String
    The intended audience to receive authentication tokens for the service.
    authority String
    The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
    smartProxyEnabled Boolean
    Is the 'SMART on FHIR' option for mobile and web implementations enabled?

    GetServiceCorsConfiguration

    AllowCredentials bool
    Are credentials are allowed via CORS?
    AllowedHeaders List<string>
    The set of headers to be allowed via CORS.
    AllowedMethods List<string>
    The methods to be allowed via CORS.
    AllowedOrigins List<string>
    The set of origins to be allowed via CORS.
    MaxAgeInSeconds int
    The max age to be allowed via CORS.
    AllowCredentials bool
    Are credentials are allowed via CORS?
    AllowedHeaders []string
    The set of headers to be allowed via CORS.
    AllowedMethods []string
    The methods to be allowed via CORS.
    AllowedOrigins []string
    The set of origins to be allowed via CORS.
    MaxAgeInSeconds int
    The max age to be allowed via CORS.
    allowCredentials Boolean
    Are credentials are allowed via CORS?
    allowedHeaders List<String>
    The set of headers to be allowed via CORS.
    allowedMethods List<String>
    The methods to be allowed via CORS.
    allowedOrigins List<String>
    The set of origins to be allowed via CORS.
    maxAgeInSeconds Integer
    The max age to be allowed via CORS.
    allowCredentials boolean
    Are credentials are allowed via CORS?
    allowedHeaders string[]
    The set of headers to be allowed via CORS.
    allowedMethods string[]
    The methods to be allowed via CORS.
    allowedOrigins string[]
    The set of origins to be allowed via CORS.
    maxAgeInSeconds number
    The max age to be allowed via CORS.
    allow_credentials bool
    Are credentials are allowed via CORS?
    allowed_headers Sequence[str]
    The set of headers to be allowed via CORS.
    allowed_methods Sequence[str]
    The methods to be allowed via CORS.
    allowed_origins Sequence[str]
    The set of origins to be allowed via CORS.
    max_age_in_seconds int
    The max age to be allowed via CORS.
    allowCredentials Boolean
    Are credentials are allowed via CORS?
    allowedHeaders List<String>
    The set of headers to be allowed via CORS.
    allowedMethods List<String>
    The methods to be allowed via CORS.
    allowedOrigins List<String>
    The set of origins to be allowed via CORS.
    maxAgeInSeconds Number
    The max age to be allowed via CORS.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi