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
LookupServicein the Go SDK.
public static class GetService {
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetService Result
The following output properties are available:
- Access
Policy List<string>Object Ids - Authentication
Configurations List<GetService Authentication Configuration> An
authentication_configurationblock as defined below.- Cors
Configurations List<GetService Cors Configuration> A
cors_configurationblock as defined below.- Cosmosdb
Throughput 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
- 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_configurationblock as defined below.- Cors
Configurations []GetService Cors Configuration A
cors_configurationblock as defined below.- Cosmosdb
Throughput 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
- 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_configurationblock as defined below.- cors
Configurations GetService Cors Configuration[] A
cors_configurationblock as defined below.- cosmosdb
Throughput 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
- resource
Group stringName - {[key: string]: string}
A mapping of tags to assign to the resource.
- access_
policy_ List[str]object_ ids - authentication_
configurations List[GetService Authentication Configuration] An
authentication_configurationblock as defined below.- cors_
configurations List[GetService Cors Configuration] A
cors_configurationblock 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_ strname - 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.
- 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 enbled?
- 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 enbled?
- 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 enbled?
- 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 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.
- 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 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 List[str] The set of headers to be allowed via CORS.
- allowed
Methods List[str] The methods to be allowed via CORS.
- allowed
Origins List[str] The set of origins to be allowed via CORS.
- max
Age floatIn Seconds 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
azurermTerraform Provider.