We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.healthcare.getDicomService
Explore with Pulumi AI
Use this data source to access information about an existing Healthcare DICOM Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.healthcare.getDicomService({
    name: "example-healthcare_dicom_service",
    workspaceId: exampleAzurermHealthcareWorkspace.id,
});
export const azurermHealthcareDicomService = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.healthcare.get_dicom_service(name="example-healthcare_dicom_service",
    workspace_id=example_azurerm_healthcare_workspace["id"])
pulumi.export("azurermHealthcareDicomService", 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.LookupDicomService(ctx, &healthcare.LookupDicomServiceArgs{
			Name:        "example-healthcare_dicom_service",
			WorkspaceId: exampleAzurermHealthcareWorkspace.Id,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("azurermHealthcareDicomService", 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.GetDicomService.Invoke(new()
    {
        Name = "example-healthcare_dicom_service",
        WorkspaceId = exampleAzurermHealthcareWorkspace.Id,
    });
    return new Dictionary<string, object?>
    {
        ["azurermHealthcareDicomService"] = example.Apply(getDicomServiceResult => getDicomServiceResult.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.GetDicomServiceArgs;
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.getDicomService(GetDicomServiceArgs.builder()
            .name("example-healthcare_dicom_service")
            .workspaceId(exampleAzurermHealthcareWorkspace.id())
            .build());
        ctx.export("azurermHealthcareDicomService", example.applyValue(getDicomServiceResult -> getDicomServiceResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:healthcare:getDicomService
      arguments:
        name: example-healthcare_dicom_service
        workspaceId: ${exampleAzurermHealthcareWorkspace.id}
outputs:
  azurermHealthcareDicomService: ${example.id}
Using getDicomService
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 getDicomService(args: GetDicomServiceArgs, opts?: InvokeOptions): Promise<GetDicomServiceResult>
function getDicomServiceOutput(args: GetDicomServiceOutputArgs, opts?: InvokeOptions): Output<GetDicomServiceResult>def get_dicom_service(name: Optional[str] = None,
                      workspace_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDicomServiceResult
def get_dicom_service_output(name: Optional[pulumi.Input[str]] = None,
                      workspace_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDicomServiceResult]func LookupDicomService(ctx *Context, args *LookupDicomServiceArgs, opts ...InvokeOption) (*LookupDicomServiceResult, error)
func LookupDicomServiceOutput(ctx *Context, args *LookupDicomServiceOutputArgs, opts ...InvokeOption) LookupDicomServiceResultOutput> Note: This function is named LookupDicomService in the Go SDK.
public static class GetDicomService 
{
    public static Task<GetDicomServiceResult> InvokeAsync(GetDicomServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetDicomServiceResult> Invoke(GetDicomServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDicomServiceResult> getDicomService(GetDicomServiceArgs args, InvokeOptions options)
public static Output<GetDicomServiceResult> getDicomService(GetDicomServiceArgs args, InvokeOptions options)
fn::invoke:
  function: azure:healthcare/getDicomService:getDicomService
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Healthcare DICOM Service
- WorkspaceId string
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
- Name string
- The name of the Healthcare DICOM Service
- WorkspaceId string
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
- name String
- The name of the Healthcare DICOM Service
- workspaceId String
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
- name string
- The name of the Healthcare DICOM Service
- workspaceId string
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
- name str
- The name of the Healthcare DICOM Service
- workspace_id str
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
- name String
- The name of the Healthcare DICOM Service
- workspaceId String
- The ID of the Healthcare Workspace in which the Healthcare DICOM Service exists.
getDicomService Result
The following output properties are available:
- Authentications
List<GetDicom Service Authentication> 
- The authenticationblock as defined below.
- Cors
List<GetDicom Service Cor> 
- The corsblock as defined below.
- DataPartitions boolEnabled 
- If data partitions are enabled or not.
- EncryptionKey stringUrl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<GetDicom Service Identity> 
- Location string
- The Azure Region where the Healthcare DICOM Service is located.
- Name string
- PrivateEndpoints List<GetDicom Service Private Endpoint> 
- ServiceUrl string
- The url of the Healthcare DICOM Services.
- Storages
List<GetDicom Service Storage> 
- The storageblock as defined below.
- Dictionary<string, string>
- A map of tags assigned to the Healthcare DICOM Service.
- WorkspaceId string
- Authentications
[]GetDicom Service Authentication 
- The authenticationblock as defined below.
- Cors
[]GetDicom Service Cor 
- The corsblock as defined below.
- DataPartitions boolEnabled 
- If data partitions are enabled or not.
- EncryptionKey stringUrl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]GetDicom Service Identity 
- Location string
- The Azure Region where the Healthcare DICOM Service is located.
- Name string
- PrivateEndpoints []GetDicom Service Private Endpoint 
- ServiceUrl string
- The url of the Healthcare DICOM Services.
- Storages
[]GetDicom Service Storage 
- The storageblock as defined below.
- map[string]string
- A map of tags assigned to the Healthcare DICOM Service.
- WorkspaceId string
- authentications
List<GetDicom Service Authentication> 
- The authenticationblock as defined below.
- cors
List<GetDicom Service Cor> 
- The corsblock as defined below.
- dataPartitions BooleanEnabled 
- If data partitions are enabled or not.
- encryptionKey StringUrl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<GetDicom Service Identity> 
- location String
- The Azure Region where the Healthcare DICOM Service is located.
- name String
- privateEndpoints List<GetDicom Service Private Endpoint> 
- serviceUrl String
- The url of the Healthcare DICOM Services.
- storages
List<GetDicom Service Storage> 
- The storageblock as defined below.
- Map<String,String>
- A map of tags assigned to the Healthcare DICOM Service.
- workspaceId String
- authentications
GetDicom Service Authentication[] 
- The authenticationblock as defined below.
- cors
GetDicom Service Cor[] 
- The corsblock as defined below.
- dataPartitions booleanEnabled 
- If data partitions are enabled or not.
- encryptionKey stringUrl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
GetDicom Service Identity[] 
- location string
- The Azure Region where the Healthcare DICOM Service is located.
- name string
- privateEndpoints GetDicom Service Private Endpoint[] 
- serviceUrl string
- The url of the Healthcare DICOM Services.
- storages
GetDicom Service Storage[] 
- The storageblock as defined below.
- {[key: string]: string}
- A map of tags assigned to the Healthcare DICOM Service.
- workspaceId string
- authentications
Sequence[GetDicom Service Authentication] 
- The authenticationblock as defined below.
- cors
Sequence[GetDicom Service Cor] 
- The corsblock as defined below.
- data_partitions_ boolenabled 
- If data partitions are enabled or not.
- encryption_key_ strurl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[GetDicom Service Identity] 
- location str
- The Azure Region where the Healthcare DICOM Service is located.
- name str
- private_endpoints Sequence[GetDicom Service Private Endpoint] 
- service_url str
- The url of the Healthcare DICOM Services.
- storages
Sequence[GetDicom Service Storage] 
- The storageblock as defined below.
- Mapping[str, str]
- A map of tags assigned to the Healthcare DICOM Service.
- workspace_id str
- authentications List<Property Map>
- The authenticationblock as defined below.
- cors List<Property Map>
- The corsblock as defined below.
- dataPartitions BooleanEnabled 
- If data partitions are enabled or not.
- encryptionKey StringUrl 
- The URL of the key to use for encryption as part of the customer-managed key encryption settings.
- id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- location String
- The Azure Region where the Healthcare DICOM Service is located.
- name String
- privateEndpoints List<Property Map>
- serviceUrl String
- The url of the Healthcare DICOM Services.
- storages List<Property Map>
- The storageblock as defined below.
- Map<String>
- A map of tags assigned to the Healthcare DICOM Service.
- workspaceId String
Supporting Types
GetDicomServiceAuthentication   
- Audiences List<string>
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- string
- Audiences []string
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- string
- audiences List<String>
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- String
- audiences string[]
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- string
- audiences Sequence[str]
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- str
- audiences List<String>
- The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
- String
GetDicomServiceCor   
- AllowCredentials bool
- Whether to allow credentials in CORS.
- AllowedHeaders List<string>
- A list of allowed headers for CORS.
- AllowedMethods List<string>
- A list of allowed methods for CORS.
- AllowedOrigins List<string>
- A list of allowed origins for CORS.
- MaxAge intIn Seconds 
- The maximum age in seconds for the CORS configuration.
- AllowCredentials bool
- Whether to allow credentials in CORS.
- AllowedHeaders []string
- A list of allowed headers for CORS.
- AllowedMethods []string
- A list of allowed methods for CORS.
- AllowedOrigins []string
- A list of allowed origins for CORS.
- MaxAge intIn Seconds 
- The maximum age in seconds for the CORS configuration.
- allowCredentials Boolean
- Whether to allow credentials in CORS.
- allowedHeaders List<String>
- A list of allowed headers for CORS.
- allowedMethods List<String>
- A list of allowed methods for CORS.
- allowedOrigins List<String>
- A list of allowed origins for CORS.
- maxAge IntegerIn Seconds 
- The maximum age in seconds for the CORS configuration.
- allowCredentials boolean
- Whether to allow credentials in CORS.
- allowedHeaders string[]
- A list of allowed headers for CORS.
- allowedMethods string[]
- A list of allowed methods for CORS.
- allowedOrigins string[]
- A list of allowed origins for CORS.
- maxAge numberIn Seconds 
- The maximum age in seconds for the CORS configuration.
- allow_credentials bool
- Whether to allow credentials in CORS.
- allowed_headers Sequence[str]
- A list of allowed headers for CORS.
- allowed_methods Sequence[str]
- A list of allowed methods for CORS.
- allowed_origins Sequence[str]
- A list of allowed origins for CORS.
- max_age_ intin_ seconds 
- The maximum age in seconds for the CORS configuration.
- allowCredentials Boolean
- Whether to allow credentials in CORS.
- allowedHeaders List<String>
- A list of allowed headers for CORS.
- allowedMethods List<String>
- A list of allowed methods for CORS.
- allowedOrigins List<String>
- A list of allowed origins for CORS.
- maxAge NumberIn Seconds 
- The maximum age in seconds for the CORS configuration.
GetDicomServiceIdentity   
- IdentityIds List<string>
- PrincipalId string
- TenantId string
- Type string
- IdentityIds []string
- PrincipalId string
- TenantId string
- Type string
- identityIds List<String>
- principalId String
- tenantId String
- type String
- identityIds string[]
- principalId string
- tenantId string
- type string
- identity_ids Sequence[str]
- principal_id str
- tenant_id str
- type str
- identityIds List<String>
- principalId String
- tenantId String
- type String
GetDicomServicePrivateEndpoint    
GetDicomServiceStorage   
- FileSystem stringName 
- The filesystem name of connected storage account.
- StorageAccount stringId 
- The resource ID of connected storage account.
- FileSystem stringName 
- The filesystem name of connected storage account.
- StorageAccount stringId 
- The resource ID of connected storage account.
- fileSystem StringName 
- The filesystem name of connected storage account.
- storageAccount StringId 
- The resource ID of connected storage account.
- fileSystem stringName 
- The filesystem name of connected storage account.
- storageAccount stringId 
- The resource ID of connected storage account.
- file_system_ strname 
- The filesystem name of connected storage account.
- storage_account_ strid 
- The resource ID of connected storage account.
- fileSystem StringName 
- The filesystem name of connected storage account.
- storageAccount StringId 
- The resource ID of connected storage account.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.