We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.healthcare.getService
Explore with Pulumi AI
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.
- Resource
Group stringName - 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.
- Resource
Group stringName - 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.
- resource
Group StringName - 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.
- resource
Group stringName - 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_ strname - 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.
- resource
Group StringName - The name of the Resource Group in which the Healthcare Service exists.
getService Result
The following output properties are available:
- Access
Policy List<string>Object Ids - Authentication
Configurations List<GetService Authentication Configuration> - An
authentication_configuration
block as defined below. - Cors
Configurations List<GetService Cors Configuration> - A
cors_configuration
block as defined below. - Cosmosdb
Key stringVault Key Versionless Id - The versionless Key Vault Key ID for CMK encryption of the backing database.
- Cosmosdb
Throughput 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
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Access
Policy []stringObject Ids - Authentication
Configurations []GetService Authentication Configuration - An
authentication_configuration
block as defined below. - Cors
Configurations []GetService Cors Configuration - A
cors_configuration
block as defined below. - Cosmosdb
Key stringVault Key Versionless Id - The versionless Key Vault Key ID for CMK encryption of the backing database.
- Cosmosdb
Throughput 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
- Resource
Group stringName - map[string]string
- A mapping of tags to assign to the resource.
- access
Policy List<String>Object Ids - authentication
Configurations List<GetService Authentication Configuration> - An
authentication_configuration
block as defined below. - cors
Configurations List<GetService Cors Configuration> - A
cors_configuration
block as defined below. - cosmosdb
Key StringVault Key Versionless Id - The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdb
Throughput 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
- resource
Group StringName - Map<String,String>
- A mapping of tags to assign to the resource.
- access
Policy string[]Object Ids - authentication
Configurations GetService Authentication Configuration[] - An
authentication_configuration
block as defined below. - cors
Configurations GetService Cors Configuration[] - A
cors_configuration
block as defined below. - cosmosdb
Key stringVault Key Versionless Id - The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdb
Throughput 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
- resource
Group stringName - {[key: string]: string}
- A mapping of tags to assign to the resource.
- access_
policy_ Sequence[str]object_ ids - authentication_
configurations Sequence[GetService Authentication Configuration] - An
authentication_configuration
block as defined below. - cors_
configurations Sequence[GetService Cors Configuration] - A
cors_configuration
block as defined below. - cosmosdb_
key_ strvault_ key_ versionless_ id - 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_ strname - Mapping[str, str]
- A mapping of tags to assign to the resource.
- access
Policy List<String>Object Ids - authentication
Configurations List<Property Map> - An
authentication_configuration
block as defined below. - cors
Configurations List<Property Map> - A
cors_configuration
block as defined below. - cosmosdb
Key StringVault Key Versionless Id - The versionless Key Vault Key ID for CMK encryption of the backing database.
- cosmosdb
Throughput 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
- resource
Group StringName - 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.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- Smart
Proxy boolEnabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- Audience string
- The intended audience to receive authentication tokens for the service.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- Smart
Proxy boolEnabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience String
- The intended audience to receive authentication tokens for the service.
- String
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smart
Proxy BooleanEnabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience string
- The intended audience to receive authentication tokens for the service.
- string
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smart
Proxy booleanEnabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience str
- The intended audience to receive authentication tokens for the service.
- str
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smart_
proxy_ boolenabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
- audience String
- The intended audience to receive authentication tokens for the service.
- String
- The Azure Active Directory (tenant) that serves as the authentication authority to access the service.
- smart
Proxy BooleanEnabled - Is the 'SMART on FHIR' option for mobile and web implementations enabled?
GetServiceCorsConfiguration
- Allow
Credentials bool - Are credentials are allowed via CORS?
- Allowed
Headers List<string> - The set of headers to be allowed via CORS.
- Allowed
Methods List<string> - The methods to be allowed via CORS.
- Allowed
Origins List<string> - The set of origins to be allowed via CORS.
- Max
Age intIn Seconds - The max age to be allowed via CORS.
- Allow
Credentials bool - Are credentials are allowed via CORS?
- Allowed
Headers []string - The set of headers to be allowed via CORS.
- Allowed
Methods []string - The methods to be allowed via CORS.
- Allowed
Origins []string - The set of origins to be allowed via CORS.
- Max
Age intIn Seconds - The max age to be allowed via CORS.
- allow
Credentials Boolean - Are credentials are allowed via CORS?
- allowed
Headers List<String> - The set of headers to be allowed via CORS.
- allowed
Methods List<String> - The methods to be allowed via CORS.
- allowed
Origins List<String> - The set of origins to be allowed via CORS.
- max
Age IntegerIn Seconds - The max age to be allowed via CORS.
- allow
Credentials boolean - Are credentials are allowed via CORS?
- allowed
Headers string[] - The set of headers to be allowed via CORS.
- allowed
Methods string[] - The methods to be allowed via CORS.
- allowed
Origins string[] - The set of origins to be allowed via CORS.
- max
Age numberIn Seconds - 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_ intin_ seconds - The max age to be allowed via CORS.
- allow
Credentials Boolean - Are credentials are allowed via CORS?
- allowed
Headers List<String> - The set of headers to be allowed via CORS.
- allowed
Methods List<String> - The methods to be allowed via CORS.
- allowed
Origins List<String> - The set of origins to be allowed via CORS.
- max
Age NumberIn Seconds - 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.