hsdp.DicomRepository
Explore with Pulumi AI
This resource manages a DICOM repository
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const repo1 = new hsdp.DicomRepository("repo1", {
configUrl: hsdp_dicom_store_config.dicom.config_url,
organizationId: hsdp_iam_org.root_org.id,
objectStoreId: hsdp_dicom_object_store.store1.id,
notification: {
organizationId: hsdp_iam_org.tenant1.id,
},
});
import pulumi
import pulumi_hsdp as hsdp
repo1 = hsdp.DicomRepository("repo1",
config_url=hsdp_dicom_store_config["dicom"]["config_url"],
organization_id=hsdp_iam_org["root_org"]["id"],
object_store_id=hsdp_dicom_object_store["store1"]["id"],
notification={
"organization_id": hsdp_iam_org["tenant1"]["id"],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.NewDicomRepository(ctx, "repo1", &hsdp.DicomRepositoryArgs{
ConfigUrl: pulumi.Any(hsdp_dicom_store_config.Dicom.Config_url),
OrganizationId: pulumi.Any(hsdp_iam_org.Root_org.Id),
ObjectStoreId: pulumi.Any(hsdp_dicom_object_store.Store1.Id),
Notification: &hsdp.DicomRepositoryNotificationArgs{
OrganizationId: pulumi.Any(hsdp_iam_org.Tenant1.Id),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var repo1 = new Hsdp.DicomRepository("repo1", new()
{
ConfigUrl = hsdp_dicom_store_config.Dicom.Config_url,
OrganizationId = hsdp_iam_org.Root_org.Id,
ObjectStoreId = hsdp_dicom_object_store.Store1.Id,
Notification = new Hsdp.Inputs.DicomRepositoryNotificationArgs
{
OrganizationId = hsdp_iam_org.Tenant1.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.DicomRepository;
import com.pulumi.hsdp.DicomRepositoryArgs;
import com.pulumi.hsdp.inputs.DicomRepositoryNotificationArgs;
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) {
var repo1 = new DicomRepository("repo1", DicomRepositoryArgs.builder()
.configUrl(hsdp_dicom_store_config.dicom().config_url())
.organizationId(hsdp_iam_org.root_org().id())
.objectStoreId(hsdp_dicom_object_store.store1().id())
.notification(DicomRepositoryNotificationArgs.builder()
.organizationId(hsdp_iam_org.tenant1().id())
.build())
.build());
}
}
resources:
repo1:
type: hsdp:DicomRepository
properties:
configUrl: ${hsdp_dicom_store_config.dicom.config_url}
organizationId: ${hsdp_iam_org.root_org.id}
objectStoreId: ${hsdp_dicom_object_store.store1.id}
notification:
organizationId: ${hsdp_iam_org.tenant1.id}
Create DicomRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DicomRepository(name: string, args: DicomRepositoryArgs, opts?: CustomResourceOptions);
@overload
def DicomRepository(resource_name: str,
args: DicomRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DicomRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_url: Optional[str] = None,
object_store_id: Optional[str] = None,
organization_id: Optional[str] = None,
dicom_repository_id: Optional[str] = None,
notification: Optional[DicomRepositoryNotificationArgs] = None,
repository_organization_id: Optional[str] = None,
store_as_composite: Optional[bool] = None)
func NewDicomRepository(ctx *Context, name string, args DicomRepositoryArgs, opts ...ResourceOption) (*DicomRepository, error)
public DicomRepository(string name, DicomRepositoryArgs args, CustomResourceOptions? opts = null)
public DicomRepository(String name, DicomRepositoryArgs args)
public DicomRepository(String name, DicomRepositoryArgs args, CustomResourceOptions options)
type: hsdp:DicomRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DicomRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DicomRepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DicomRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DicomRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DicomRepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dicomRepositoryResource = new Hsdp.DicomRepository("dicomRepositoryResource", new()
{
ConfigUrl = "string",
ObjectStoreId = "string",
OrganizationId = "string",
DicomRepositoryId = "string",
Notification = new Hsdp.Inputs.DicomRepositoryNotificationArgs
{
OrganizationId = "string",
Enabled = false,
},
RepositoryOrganizationId = "string",
StoreAsComposite = false,
});
example, err := hsdp.NewDicomRepository(ctx, "dicomRepositoryResource", &hsdp.DicomRepositoryArgs{
ConfigUrl: pulumi.String("string"),
ObjectStoreId: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
DicomRepositoryId: pulumi.String("string"),
Notification: &hsdp.DicomRepositoryNotificationArgs{
OrganizationId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
RepositoryOrganizationId: pulumi.String("string"),
StoreAsComposite: pulumi.Bool(false),
})
var dicomRepositoryResource = new DicomRepository("dicomRepositoryResource", DicomRepositoryArgs.builder()
.configUrl("string")
.objectStoreId("string")
.organizationId("string")
.dicomRepositoryId("string")
.notification(DicomRepositoryNotificationArgs.builder()
.organizationId("string")
.enabled(false)
.build())
.repositoryOrganizationId("string")
.storeAsComposite(false)
.build());
dicom_repository_resource = hsdp.DicomRepository("dicomRepositoryResource",
config_url="string",
object_store_id="string",
organization_id="string",
dicom_repository_id="string",
notification={
"organization_id": "string",
"enabled": False,
},
repository_organization_id="string",
store_as_composite=False)
const dicomRepositoryResource = new hsdp.DicomRepository("dicomRepositoryResource", {
configUrl: "string",
objectStoreId: "string",
organizationId: "string",
dicomRepositoryId: "string",
notification: {
organizationId: "string",
enabled: false,
},
repositoryOrganizationId: "string",
storeAsComposite: false,
});
type: hsdp:DicomRepository
properties:
configUrl: string
dicomRepositoryId: string
notification:
enabled: false
organizationId: string
objectStoreId: string
organizationId: string
repositoryOrganizationId: string
storeAsComposite: false
DicomRepository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DicomRepository resource accepts the following input properties:
- Config
Url string - The base config URL of the DICOM Store instance
- Object
Store stringId - the Object store ID
- Organization
Id string - The organization ID
- Dicom
Repository stringId - Notification
Dicom
Repository Notification - Repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- Store
As boolComposite - Configure this repository as store as composite.
- Config
Url string - The base config URL of the DICOM Store instance
- Object
Store stringId - the Object store ID
- Organization
Id string - The organization ID
- Dicom
Repository stringId - Notification
Dicom
Repository Notification Args - Repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- Store
As boolComposite - Configure this repository as store as composite.
- config
Url String - The base config URL of the DICOM Store instance
- object
Store StringId - the Object store ID
- organization
Id String - The organization ID
- dicom
Repository StringId - notification
Dicom
Repository Notification - repository
Organization StringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As BooleanComposite - Configure this repository as store as composite.
- config
Url string - The base config URL of the DICOM Store instance
- object
Store stringId - the Object store ID
- organization
Id string - The organization ID
- dicom
Repository stringId - notification
Dicom
Repository Notification - repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As booleanComposite - Configure this repository as store as composite.
- config_
url str - The base config URL of the DICOM Store instance
- object_
store_ strid - the Object store ID
- organization_
id str - The organization ID
- dicom_
repository_ strid - notification
Dicom
Repository Notification Args - repository_
organization_ strid - The organization ID attached to this repository. When not specified, the root organization is used.
- store_
as_ boolcomposite - Configure this repository as store as composite.
- config
Url String - The base config URL of the DICOM Store instance
- object
Store StringId - the Object store ID
- organization
Id String - The organization ID
- dicom
Repository StringId - notification Property Map
- repository
Organization StringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As BooleanComposite - Configure this repository as store as composite.
Outputs
All input properties are implicitly available as output properties. Additionally, the DicomRepository resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DicomRepository Resource
Get an existing DicomRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DicomRepositoryState, opts?: CustomResourceOptions): DicomRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config_url: Optional[str] = None,
dicom_repository_id: Optional[str] = None,
notification: Optional[DicomRepositoryNotificationArgs] = None,
object_store_id: Optional[str] = None,
organization_id: Optional[str] = None,
repository_organization_id: Optional[str] = None,
store_as_composite: Optional[bool] = None) -> DicomRepository
func GetDicomRepository(ctx *Context, name string, id IDInput, state *DicomRepositoryState, opts ...ResourceOption) (*DicomRepository, error)
public static DicomRepository Get(string name, Input<string> id, DicomRepositoryState? state, CustomResourceOptions? opts = null)
public static DicomRepository get(String name, Output<String> id, DicomRepositoryState state, CustomResourceOptions options)
resources: _: type: hsdp:DicomRepository get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Config
Url string - The base config URL of the DICOM Store instance
- Dicom
Repository stringId - Notification
Dicom
Repository Notification - Object
Store stringId - the Object store ID
- Organization
Id string - The organization ID
- Repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- Store
As boolComposite - Configure this repository as store as composite.
- Config
Url string - The base config URL of the DICOM Store instance
- Dicom
Repository stringId - Notification
Dicom
Repository Notification Args - Object
Store stringId - the Object store ID
- Organization
Id string - The organization ID
- Repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- Store
As boolComposite - Configure this repository as store as composite.
- config
Url String - The base config URL of the DICOM Store instance
- dicom
Repository StringId - notification
Dicom
Repository Notification - object
Store StringId - the Object store ID
- organization
Id String - The organization ID
- repository
Organization StringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As BooleanComposite - Configure this repository as store as composite.
- config
Url string - The base config URL of the DICOM Store instance
- dicom
Repository stringId - notification
Dicom
Repository Notification - object
Store stringId - the Object store ID
- organization
Id string - The organization ID
- repository
Organization stringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As booleanComposite - Configure this repository as store as composite.
- config_
url str - The base config URL of the DICOM Store instance
- dicom_
repository_ strid - notification
Dicom
Repository Notification Args - object_
store_ strid - the Object store ID
- organization_
id str - The organization ID
- repository_
organization_ strid - The organization ID attached to this repository. When not specified, the root organization is used.
- store_
as_ boolcomposite - Configure this repository as store as composite.
- config
Url String - The base config URL of the DICOM Store instance
- dicom
Repository StringId - notification Property Map
- object
Store StringId - the Object store ID
- organization
Id String - The organization ID
- repository
Organization StringId - The organization ID attached to this repository. When not specified, the root organization is used.
- store
As BooleanComposite - Configure this repository as store as composite.
Supporting Types
DicomRepositoryNotification, DicomRepositoryNotificationArgs
- Organization
Id string - the tenant IAM Organization ID
- Enabled bool
- Enable notifications or not. Default:
true
- Organization
Id string - the tenant IAM Organization ID
- Enabled bool
- Enable notifications or not. Default:
true
- organization
Id String - the tenant IAM Organization ID
- enabled Boolean
- Enable notifications or not. Default:
true
- organization
Id string - the tenant IAM Organization ID
- enabled boolean
- Enable notifications or not. Default:
true
- organization_
id str - the tenant IAM Organization ID
- enabled bool
- Enable notifications or not. Default:
true
- organization
Id String - the tenant IAM Organization ID
- enabled Boolean
- Enable notifications or not. Default:
true
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.