GetService

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Healthcare.GetService.InvokeAsync(new Azure.Healthcare.GetServiceArgs
        {
            Name = "example-healthcare_service",
            ResourceGroupName = "example-resources",
            Location = "westus2",
        }));
        this.HealthcareServiceId = example.Apply(example => example.Id);
    }

    [Output("healthcareServiceId")]
    public Output<string> HealthcareServiceId { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/healthcare"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
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)
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);

Using GetService

function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function  get_service(location=None, name=None, resource_group_name=None, opts=None)
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)

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

public static class GetService {
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}

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 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.

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.

CosmosdbThroughput int
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.

CosmosdbThroughput int
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.

cosmosdbThroughput number
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 List[str]
authentication_configurations List[GetServiceAuthenticationConfiguration]

An authentication_configuration block as defined below.

cors_configurations List[GetServiceCorsConfiguration]

A cors_configuration block as defined below.

cosmosdb_throughput float
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 Dict[str, str]

A mapping of tags to assign to the resource.

Supporting Types

GetServiceAuthenticationConfiguration

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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 enbled?

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 enbled?

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 enbled?

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.

smartProxyEnabled bool

Is the ‘SMART on FHIR’ option for mobile and web implementations enbled?

GetServiceCorsConfiguration

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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 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.

allowCredentials bool

Are credentials are allowed via CORS?

allowedHeaders List[str]

The set of headers to be allowed via CORS.

allowedMethods List[str]

The methods to be allowed via CORS.

allowedOrigins List[str]

The set of origins to be allowed via CORS.

maxAgeInSeconds float

The max age to be allowed via CORS.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.