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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.healthcare.getDicomService

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:healthcare/getDicomService:getDicomService
      arguments:
        # arguments dictionary

    The 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<GetDicomServiceAuthentication>
    The authentication block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetDicomServiceIdentity>
    Location string
    The Azure Region where the Healthcare DICOM Service is located.
    Name string
    PrivateEndpoints List<GetDicomServicePrivateEndpoint>
    ServiceUrl string
    The url of the Healthcare DICOM Services.
    Tags Dictionary<string, string>
    A map of tags assigned to the Healthcare DICOM Service.
    WorkspaceId string
    Authentications []GetDicomServiceAuthentication
    The authentication block as defined below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetDicomServiceIdentity
    Location string
    The Azure Region where the Healthcare DICOM Service is located.
    Name string
    PrivateEndpoints []GetDicomServicePrivateEndpoint
    ServiceUrl string
    The url of the Healthcare DICOM Services.
    Tags map[string]string
    A map of tags assigned to the Healthcare DICOM Service.
    WorkspaceId string
    authentications List<GetDicomServiceAuthentication>
    The authentication block as defined below.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetDicomServiceIdentity>
    location String
    The Azure Region where the Healthcare DICOM Service is located.
    name String
    privateEndpoints List<GetDicomServicePrivateEndpoint>
    serviceUrl String
    The url of the Healthcare DICOM Services.
    tags Map<String,String>
    A map of tags assigned to the Healthcare DICOM Service.
    workspaceId String
    authentications GetDicomServiceAuthentication[]
    The authentication block as defined below.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetDicomServiceIdentity[]
    location string
    The Azure Region where the Healthcare DICOM Service is located.
    name string
    privateEndpoints GetDicomServicePrivateEndpoint[]
    serviceUrl string
    The url of the Healthcare DICOM Services.
    tags {[key: string]: string}
    A map of tags assigned to the Healthcare DICOM Service.
    workspaceId string
    authentications Sequence[GetDicomServiceAuthentication]
    The authentication block as defined below.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetDicomServiceIdentity]
    location str
    The Azure Region where the Healthcare DICOM Service is located.
    name str
    private_endpoints Sequence[GetDicomServicePrivateEndpoint]
    service_url str
    The url of the Healthcare DICOM Services.
    tags Mapping[str, str]
    A map of tags assigned to the Healthcare DICOM Service.
    workspace_id str
    authentications List<Property Map>
    The authentication block as defined below.
    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.
    tags 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
    Authority string
    Audiences []string
    The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
    Authority string
    audiences List<String>
    The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
    authority String
    audiences string[]
    The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
    authority string
    audiences Sequence[str]
    The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
    authority str
    audiences List<String>
    The intended audience to receive authentication tokens for the service. The default value is https://dicom.azurehealthcareapis.azure.com
    authority String

    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

    Id string
    The ID of the Healthcare DICOM Service.
    Name string
    The name of the Healthcare DICOM Service
    Id string
    The ID of the Healthcare DICOM Service.
    Name string
    The name of the Healthcare DICOM Service
    id String
    The ID of the Healthcare DICOM Service.
    name String
    The name of the Healthcare DICOM Service
    id string
    The ID of the Healthcare DICOM Service.
    name string
    The name of the Healthcare DICOM Service
    id str
    The ID of the Healthcare DICOM Service.
    name str
    The name of the Healthcare DICOM Service
    id String
    The ID of the Healthcare DICOM Service.
    name String
    The name of the Healthcare DICOM Service

    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 v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi