1. Packages
  2. Packages
  3. Grafana Cloud
  4. API Docs
  5. cloud
  6. cloud/v1alpha1
  7. ServiceModelComponent
Viewing docs for Grafana v2.38.0
published on Friday, Aug 7, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.38.0
published on Friday, Aug 7, 2026 by pulumiverse

    Manages services in Grafana Service Center via the Service Model API (servicemodel.ext.grafana.com/v1alpha1, kind Component).

    Services are catalog components of type service (the default for spec.type). Service Center currently displays components of type service; components of other types are stored but not shown.

    Availability: Grafana Cloud. The API is v1alpha1 and may evolve; the attributes exposed here are stable.

    Naming: metadata.uid is the object name, e.g. checkout-service. It can only contain lowercase letters, numbers and dashes, must start and end with a letter or number, and must be 2 to 63 characters long. Changing metadata.uid replaces the resource (destroy and create). The uid is also the service identifier: dashboards, alerts, SLOs and other resources are matched to the service when they carry a serviceName label or tag equal to it; the identifiers block can add further values to match.

    Backstage catalog sync: services imported from Backstage must be managed there, not in Terraform; otherwise the two will repeatedly overwrite each other.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    // A minimal service.
    const payments = new grafana.cloud.v1alpha1.ServiceModelComponent("payments", {
        metadata: {
            uid: "payments-api",
        },
        spec: {
            title: "Payments API",
        },
    });
    const checkout = new grafana.oss.Team("checkout", {name: "Checkout Team"});
    // A service with ownership, dependencies and links.
    const checkoutServiceModelComponent = new grafana.cloud.v1alpha1.ServiceModelComponent("checkout", {
        metadata: {
            uid: "checkout-service",
        },
        spec: {
            title: "Checkout Service",
            description: "Handles checkout and payment orchestration.",
            identifiers: [
                {
                    key: "service_name",
                    value: "Checkout_Service",
                },
                {
                    key: "namespace",
                    value: "checkout-prod",
                },
            ],
            ownerRef: {
                name: checkout.teamUid,
            },
            dependsOnRefs: [{
                name: payments.metadata.apply(metadata => metadata?.uid),
            }],
            links: [{
                url: "https://github.com/example/checkout",
                title: "Source code",
                type: "repository",
            }],
        },
    });
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    # A minimal service.
    payments = grafana.cloud.v1alpha1.ServiceModelComponent("payments",
        metadata={
            "uid": "payments-api",
        },
        spec={
            "title": "Payments API",
        })
    checkout = grafana.oss.Team("checkout", name="Checkout Team")
    # A service with ownership, dependencies and links.
    checkout_service_model_component = grafana.cloud.v1alpha1.ServiceModelComponent("checkout",
        metadata={
            "uid": "checkout-service",
        },
        spec={
            "title": "Checkout Service",
            "description": "Handles checkout and payment orchestration.",
            "identifiers": [
                {
                    "key": "service_name",
                    "value": "Checkout_Service",
                },
                {
                    "key": "namespace",
                    "value": "checkout-prod",
                },
            ],
            "owner_ref": {
                "name": checkout.team_uid,
            },
            "depends_on_refs": [{
                "name": payments.metadata.uid,
            }],
            "links": [{
                "url": "https://github.com/example/checkout",
                "title": "Source code",
                "type": "repository",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/cloud"
    	cloudv1alpha1 "github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/cloud/v1alpha1"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/oss"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// A minimal service.
    		payments, err := cloud.NewServiceModelComponent(ctx, "payments", &cloud.ServiceModelComponentArgs{
    			Metadata: &cloudv1alpha1.ServiceModelComponentMetadataArgs{
    				Uid: pulumi.String("payments-api"),
    			},
    			Spec: &cloudv1alpha1.ServiceModelComponentSpecArgs{
    				Title: pulumi.String("Payments API"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		checkout, err := oss.NewTeam(ctx, "checkout", &oss.TeamArgs{
    			Name: pulumi.String("Checkout Team"),
    		})
    		if err != nil {
    			return err
    		}
    		// A service with ownership, dependencies and links.
    		_, err = cloud.NewServiceModelComponent(ctx, "checkout", &cloud.ServiceModelComponentArgs{
    			Metadata: &cloudv1alpha1.ServiceModelComponentMetadataArgs{
    				Uid: pulumi.String("checkout-service"),
    			},
    			Spec: &cloudv1alpha1.ServiceModelComponentSpecArgs{
    				Title:       pulumi.String("Checkout Service"),
    				Description: pulumi.String("Handles checkout and payment orchestration."),
    				Identifiers: cloudv1alpha1.ServiceModelComponentSpecIdentifierArray{
    					&cloudv1alpha1.ServiceModelComponentSpecIdentifierArgs{
    						Key:   pulumi.String("service_name"),
    						Value: pulumi.String("Checkout_Service"),
    					},
    					&cloudv1alpha1.ServiceModelComponentSpecIdentifierArgs{
    						Key:   pulumi.String("namespace"),
    						Value: pulumi.String("checkout-prod"),
    					},
    				},
    				OwnerRef: &cloudv1alpha1.ServiceModelComponentSpecOwnerRefArgs{
    					Name: checkout.TeamUid,
    				},
    				DependsOnRefs: cloudv1alpha1.ServiceModelComponentSpecDependsOnRefArray{
    					&cloudv1alpha1.ServiceModelComponentSpecDependsOnRefArgs{
    						Name: payments.Metadata.ApplyT(func(metadata cloudv1alpha1.ServiceModelComponentMetadata) (*string, error) {
    							return &metadata.Uid, nil
    						}).(pulumi.StringPtrOutput),
    					},
    				},
    				Links: cloudv1alpha1.ServiceModelComponentSpecLinkArray{
    					&cloudv1alpha1.ServiceModelComponentSpecLinkArgs{
    						Url:   pulumi.String("https://github.com/example/checkout"),
    						Title: pulumi.String("Source code"),
    						Type:  pulumi.String("repository"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        // A minimal service.
        var payments = new Grafana.Cloud.V1Alpha1.ServiceModelComponent("payments", new()
        {
            Metadata = new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentMetadataArgs
            {
                Uid = "payments-api",
            },
            Spec = new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecArgs
            {
                Title = "Payments API",
            },
        });
    
        var checkout = new Grafana.Oss.Team("checkout", new()
        {
            Name = "Checkout Team",
        });
    
        // A service with ownership, dependencies and links.
        var checkoutServiceModelComponent = new Grafana.Cloud.V1Alpha1.ServiceModelComponent("checkout", new()
        {
            Metadata = new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentMetadataArgs
            {
                Uid = "checkout-service",
            },
            Spec = new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecArgs
            {
                Title = "Checkout Service",
                Description = "Handles checkout and payment orchestration.",
                Identifiers = new[]
                {
                    new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecIdentifierArgs
                    {
                        Key = "service_name",
                        Value = "Checkout_Service",
                    },
                    new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecIdentifierArgs
                    {
                        Key = "namespace",
                        Value = "checkout-prod",
                    },
                },
                OwnerRef = new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecOwnerRefArgs
                {
                    Name = checkout.TeamUid,
                },
                DependsOnRefs = new[]
                {
                    new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecDependsOnRefArgs
                    {
                        Name = payments.Metadata.Apply(metadata => metadata?.Uid),
                    },
                },
                Links = new[]
                {
                    new Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecLinkArgs
                    {
                        Url = "https://github.com/example/checkout",
                        Title = "Source code",
                        Type = "repository",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.cloud_v1alpha1.ServiceModelComponent;
    import com.pulumi.grafana.cloud_v1alpha1.ServiceModelComponentArgs;
    import com.pulumi.grafana.cloud.inputs.ServiceModelComponentMetadataArgs;
    import com.pulumi.grafana.cloud.inputs.ServiceModelComponentSpecArgs;
    import com.pulumi.grafana.oss.Team;
    import com.pulumi.grafana.oss.TeamArgs;
    import com.pulumi.grafana.cloud.inputs.ServiceModelComponentSpecOwnerRefArgs;
    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) {
            // A minimal service.
            var payments = new ServiceModelComponent("payments", ServiceModelComponentArgs.builder()
                .metadata(ServiceModelComponentMetadataArgs.builder()
                    .uid("payments-api")
                    .build())
                .spec(ServiceModelComponentSpecArgs.builder()
                    .title("Payments API")
                    .build())
                .build());
    
            var checkout = new Team("checkout", TeamArgs.builder()
                .name("Checkout Team")
                .build());
    
            // A service with ownership, dependencies and links.
            var checkoutServiceModelComponent = new ServiceModelComponent("checkoutServiceModelComponent", ServiceModelComponentArgs.builder()
                .metadata(ServiceModelComponentMetadataArgs.builder()
                    .uid("checkout-service")
                    .build())
                .spec(ServiceModelComponentSpecArgs.builder()
                    .title("Checkout Service")
                    .description("Handles checkout and payment orchestration.")
                    .identifiers(                
                        ServiceModelComponentSpecIdentifierArgs.builder()
                            .key("service_name")
                            .value("Checkout_Service")
                            .build(),
                        ServiceModelComponentSpecIdentifierArgs.builder()
                            .key("namespace")
                            .value("checkout-prod")
                            .build())
                    .ownerRef(ServiceModelComponentSpecOwnerRefArgs.builder()
                        .name(checkout.teamUid())
                        .build())
                    .dependsOnRefs(ServiceModelComponentSpecDependsOnRefArgs.builder()
                        .name(payments.metadata().applyValue(_metadata -> _metadata.uid()))
                        .build())
                    .links(ServiceModelComponentSpecLinkArgs.builder()
                        .url("https://github.com/example/checkout")
                        .title("Source code")
                        .type("repository")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      # A minimal service.
      payments:
        type: grafana:cloud/v1alpha1:ServiceModelComponent
        properties:
          metadata:
            uid: payments-api
          spec:
            title: Payments API
      checkout:
        type: grafana:oss:Team
        properties:
          name: Checkout Team
      # A service with ownership, dependencies and links.
      checkoutServiceModelComponent:
        type: grafana:cloud/v1alpha1:ServiceModelComponent
        name: checkout
        properties:
          metadata:
            uid: checkout-service
          spec:
            title: Checkout Service
            description: Handles checkout and payment orchestration.
            identifiers:
              - key: service_name
                value: Checkout_Service
              - key: namespace
                value: checkout-prod
            ownerRef:
              name: ${checkout.teamUid}
            dependsOnRefs:
              - name: ${payments.metadata.uid}
            links:
              - url: https://github.com/example/checkout
                title: Source code
                type: repository
    
    Example coming soon!
    

    Create ServiceModelComponent Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceModelComponent(name: string, args?: ServiceModelComponentArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceModelComponent(resource_name: str,
                              args: Optional[ServiceModelComponentArgs] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceModelComponent(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              metadata: Optional[ServiceModelComponentMetadataArgs] = None,
                              options: Optional[ServiceModelComponentOptionsArgs] = None,
                              spec: Optional[ServiceModelComponentSpecArgs] = None)
    func NewServiceModelComponent(ctx *Context, name string, args *ServiceModelComponentArgs, opts ...ResourceOption) (*ServiceModelComponent, error)
    public ServiceModelComponent(string name, ServiceModelComponentArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceModelComponent(String name, ServiceModelComponentArgs args)
    public ServiceModelComponent(String name, ServiceModelComponentArgs args, CustomResourceOptions options)
    
    type: grafana:cloud/v1alpha1/serviceModelComponent:ServiceModelComponent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "grafana_cloud_v1alpha1_service_model_component" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ServiceModelComponentArgs
    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 ServiceModelComponentArgs
    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 ServiceModelComponentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceModelComponentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceModelComponentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServiceModelComponent 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 ServiceModelComponent resource accepts the following input properties:

    Metadata ServiceModelComponentMetadataArgs
    The metadata of the resource.
    Options ServiceModelComponentOptionsArgs
    Options for applying the resource.
    Spec ServiceModelComponentSpecArgs
    The spec of the resource.
    metadata object
    The metadata of the resource.
    options object
    Options for applying the resource.
    spec object
    The spec of the resource.
    metadata ServiceModelComponentMetadata
    The metadata of the resource.
    options ServiceModelComponentOptions
    Options for applying the resource.
    spec ServiceModelComponentSpec
    The spec of the resource.
    metadata ServiceModelComponentMetadata
    The metadata of the resource.
    options ServiceModelComponentOptions
    Options for applying the resource.
    spec ServiceModelComponentSpec
    The spec of the resource.
    metadata ServiceModelComponentMetadataArgs
    The metadata of the resource.
    options ServiceModelComponentOptionsArgs
    Options for applying the resource.
    spec ServiceModelComponentSpecArgs
    The spec of the resource.
    metadata Property Map
    The metadata of the resource.
    options Property Map
    Options for applying the resource.
    spec Property Map
    The spec of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceModelComponent 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 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 ServiceModelComponent Resource

    Get an existing ServiceModelComponent 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?: ServiceModelComponentState, opts?: CustomResourceOptions): ServiceModelComponent
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            metadata: Optional[ServiceModelComponentMetadataArgs] = None,
            options: Optional[ServiceModelComponentOptionsArgs] = None,
            spec: Optional[ServiceModelComponentSpecArgs] = None) -> ServiceModelComponent
    func GetServiceModelComponent(ctx *Context, name string, id IDInput, state *ServiceModelComponentState, opts ...ResourceOption) (*ServiceModelComponent, error)
    public static ServiceModelComponent Get(string name, Input<string> id, ServiceModelComponentState? state, CustomResourceOptions? opts = null)
    public static ServiceModelComponent get(String name, Output<String> id, ServiceModelComponentState state, CustomResourceOptions options)
    resources:  _:    type: grafana:cloud/v1alpha1/serviceModelComponent:ServiceModelComponent    get:      id: ${id}
    import {
      to = grafana_cloud_v1alpha1_service_model_component.example
      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.
    The following state arguments are supported:
    Metadata ServiceModelComponentMetadataArgs
    The metadata of the resource.
    Options ServiceModelComponentOptionsArgs
    Options for applying the resource.
    Spec ServiceModelComponentSpecArgs
    The spec of the resource.
    metadata object
    The metadata of the resource.
    options object
    Options for applying the resource.
    spec object
    The spec of the resource.
    metadata ServiceModelComponentMetadata
    The metadata of the resource.
    options ServiceModelComponentOptions
    Options for applying the resource.
    spec ServiceModelComponentSpec
    The spec of the resource.
    metadata ServiceModelComponentMetadata
    The metadata of the resource.
    options ServiceModelComponentOptions
    Options for applying the resource.
    spec ServiceModelComponentSpec
    The spec of the resource.
    metadata ServiceModelComponentMetadataArgs
    The metadata of the resource.
    options ServiceModelComponentOptionsArgs
    Options for applying the resource.
    spec ServiceModelComponentSpecArgs
    The spec of the resource.
    metadata Property Map
    The metadata of the resource.
    options Property Map
    Options for applying the resource.
    spec Property Map
    The spec of the resource.

    Supporting Types

    ServiceModelComponentMetadata, ServiceModelComponentMetadataArgs

    Uid string
    The unique identifier of the resource.
    Annotations Dictionary<string, string>
    Annotations of the resource.
    FolderUid string
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    Url string
    The full URL of the resource.
    Uuid string
    The globally unique identifier of a resource, used by the API for tracking.
    Version string
    The version of the resource.
    Uid string
    The unique identifier of the resource.
    Annotations map[string]string
    Annotations of the resource.
    FolderUid string
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    Url string
    The full URL of the resource.
    Uuid string
    The globally unique identifier of a resource, used by the API for tracking.
    Version string
    The version of the resource.
    uid string
    The unique identifier of the resource.
    annotations map(string)
    Annotations of the resource.
    folder_uid string
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    url string
    The full URL of the resource.
    uuid string
    The globally unique identifier of a resource, used by the API for tracking.
    version string
    The version of the resource.
    uid String
    The unique identifier of the resource.
    annotations Map<String,String>
    Annotations of the resource.
    folderUid String
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    url String
    The full URL of the resource.
    uuid String
    The globally unique identifier of a resource, used by the API for tracking.
    version String
    The version of the resource.
    uid string
    The unique identifier of the resource.
    annotations {[key: string]: string}
    Annotations of the resource.
    folderUid string
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    url string
    The full URL of the resource.
    uuid string
    The globally unique identifier of a resource, used by the API for tracking.
    version string
    The version of the resource.
    uid str
    The unique identifier of the resource.
    annotations Mapping[str, str]
    Annotations of the resource.
    folder_uid str
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    url str
    The full URL of the resource.
    uuid str
    The globally unique identifier of a resource, used by the API for tracking.
    version str
    The version of the resource.
    uid String
    The unique identifier of the resource.
    annotations Map<String>
    Annotations of the resource.
    folderUid String
    The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.
    url String
    The full URL of the resource.
    uuid String
    The globally unique identifier of a resource, used by the API for tracking.
    version String
    The version of the resource.

    ServiceModelComponentOptions, ServiceModelComponentOptionsArgs

    ManagerIdentity string
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    Overwrite bool
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    ManagerIdentity string
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    Overwrite bool
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    manager_identity string
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    overwrite bool
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    managerIdentity String
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    overwrite Boolean
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    managerIdentity string
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    overwrite boolean
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    manager_identity str
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    overwrite bool
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
    managerIdentity String
    Override the identity stamped on this resource's manager metadata. Defaults to "grafana-terraform-provider". Use this to distinguish resources managed by different Pulumi Stacks targeting the same Grafana instance.
    overwrite Boolean
    Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.

    ServiceModelComponentSpec, ServiceModelComponentSpecArgs

    Title string
    Display name of the service.
    DependsOnRefs List<Pulumiverse.Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecDependsOnRef>
    References to services this service depends on.
    Description string
    Description of the service.
    Identifiers List<Pulumiverse.Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecIdentifier>
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    Links List<Pulumiverse.Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecLink>
    Links attached to the service (documentation, repository, etc.).
    OwnerRef Pulumiverse.Grafana.Cloud.V1Alpha1.Inputs.ServiceModelComponentSpecOwnerRef
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    Type string
    Component type. Defaults to service, the only type currently displayed by Service Center.
    Title string
    Display name of the service.
    DependsOnRefs []ServiceModelComponentSpecDependsOnRef
    References to services this service depends on.
    Description string
    Description of the service.
    Identifiers []ServiceModelComponentSpecIdentifier
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    Links []ServiceModelComponentSpecLink
    Links attached to the service (documentation, repository, etc.).
    OwnerRef ServiceModelComponentSpecOwnerRef
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    Type string
    Component type. Defaults to service, the only type currently displayed by Service Center.
    title string
    Display name of the service.
    depends_on_refs list(object)
    References to services this service depends on.
    description string
    Description of the service.
    identifiers list(object)
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    links list(object)
    Links attached to the service (documentation, repository, etc.).
    owner_ref object
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    type string
    Component type. Defaults to service, the only type currently displayed by Service Center.
    title String
    Display name of the service.
    dependsOnRefs List<ServiceModelComponentSpecDependsOnRef>
    References to services this service depends on.
    description String
    Description of the service.
    identifiers List<ServiceModelComponentSpecIdentifier>
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    links List<ServiceModelComponentSpecLink>
    Links attached to the service (documentation, repository, etc.).
    ownerRef ServiceModelComponentSpecOwnerRef
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    type String
    Component type. Defaults to service, the only type currently displayed by Service Center.
    title string
    Display name of the service.
    dependsOnRefs ServiceModelComponentSpecDependsOnRef[]
    References to services this service depends on.
    description string
    Description of the service.
    identifiers ServiceModelComponentSpecIdentifier[]
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    links ServiceModelComponentSpecLink[]
    Links attached to the service (documentation, repository, etc.).
    ownerRef ServiceModelComponentSpecOwnerRef
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    type string
    Component type. Defaults to service, the only type currently displayed by Service Center.
    title str
    Display name of the service.
    depends_on_refs Sequence[ServiceModelComponentSpecDependsOnRef]
    References to services this service depends on.
    description str
    Description of the service.
    identifiers Sequence[ServiceModelComponentSpecIdentifier]
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    links Sequence[ServiceModelComponentSpecLink]
    Links attached to the service (documentation, repository, etc.).
    owner_ref ServiceModelComponentSpecOwnerRef
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    type str
    Component type. Defaults to service, the only type currently displayed by Service Center.
    title String
    Display name of the service.
    dependsOnRefs List<Property Map>
    References to services this service depends on.
    description String
    Description of the service.
    identifiers List<Property Map>
    Additional key/value pairs used to match resources to the service: a resource matches when it has a label or tag with the same key and value. For example, an identifier with key namespace and value checkout-prod matches alerts, SLOs and dashboards labeled or tagged namespace=checkout-prod. Maximum of 5. A serviceName identifier equal to metadata.uid is implicit; add an explicit serviceName when the telemetry value differs from the uid, for example because it contains characters the uid does not allow (such as uppercase letters, dots or underscores); the explicit value is matched in addition to the uid.
    links List<Property Map>
    Links attached to the service (documentation, repository, etc.).
    ownerRef Property Map
    Reference to the team owning the service. Set name to the Grafana team UID; apiVersion and kind default to a Grafana IAM team reference.
    type String
    Component type. Defaults to service, the only type currently displayed by Service Center.

    ServiceModelComponentSpecDependsOnRef, ServiceModelComponentSpecDependsOnRefArgs

    Name string
    Name (metadata.uid) of the component this service depends on.
    ApiVersion string
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    Kind string
    Kind of the referenced object. Defaults to Component.
    Name string
    Name (metadata.uid) of the component this service depends on.
    ApiVersion string
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    Kind string
    Kind of the referenced object. Defaults to Component.
    name string
    Name (metadata.uid) of the component this service depends on.
    api_version string
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    kind string
    Kind of the referenced object. Defaults to Component.
    name String
    Name (metadata.uid) of the component this service depends on.
    apiVersion String
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    kind String
    Kind of the referenced object. Defaults to Component.
    name string
    Name (metadata.uid) of the component this service depends on.
    apiVersion string
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    kind string
    Kind of the referenced object. Defaults to Component.
    name str
    Name (metadata.uid) of the component this service depends on.
    api_version str
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    kind str
    Kind of the referenced object. Defaults to Component.
    name String
    Name (metadata.uid) of the component this service depends on.
    apiVersion String
    API version of the referenced object. Defaults to servicemodel.ext.grafana.com/v1alpha1.
    kind String
    Kind of the referenced object. Defaults to Component.

    ServiceModelComponentSpecIdentifier, ServiceModelComponentSpecIdentifierArgs

    Key string
    Identifier key.
    Value string
    Identifier value.
    Key string
    Identifier key.
    Value string
    Identifier value.
    key string
    Identifier key.
    value string
    Identifier value.
    key String
    Identifier key.
    value String
    Identifier value.
    key string
    Identifier key.
    value string
    Identifier value.
    key str
    Identifier key.
    value str
    Identifier value.
    key String
    Identifier key.
    value String
    Identifier value.
    Url string
    URL of the link.
    Icon string
    Icon of the link.
    Title string
    Display title of the link.
    Type string
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    Url string
    URL of the link.
    Icon string
    Icon of the link.
    Title string
    Display title of the link.
    Type string
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    url string
    URL of the link.
    icon string
    Icon of the link.
    title string
    Display title of the link.
    type string
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    url String
    URL of the link.
    icon String
    Icon of the link.
    title String
    Display title of the link.
    type String
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    url string
    URL of the link.
    icon string
    Icon of the link.
    title string
    Display title of the link.
    type string
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    url str
    URL of the link.
    icon str
    Icon of the link.
    title str
    Display title of the link.
    type str
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.
    url String
    URL of the link.
    icon String
    Icon of the link.
    title String
    Display title of the link.
    type String
    Type of the link. The Service Center UI uses documentation, repository, backlog and custom.

    ServiceModelComponentSpecOwnerRef, ServiceModelComponentSpecOwnerRefArgs

    ApiVersion string
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    Kind string
    Kind of the referenced object. Defaults to Team.
    Name string
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    ApiVersion string
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    Kind string
    Kind of the referenced object. Defaults to Team.
    Name string
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    api_version string
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    kind string
    Kind of the referenced object. Defaults to Team.
    name string
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    apiVersion String
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    kind String
    Kind of the referenced object. Defaults to Team.
    name String
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    apiVersion string
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    kind string
    Kind of the referenced object. Defaults to Team.
    name string
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    api_version str
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    kind str
    Kind of the referenced object. Defaults to Team.
    name str
    Name of the referenced object. For the default team reference, this is the Grafana team UID.
    apiVersion String
    API version of the referenced object. Defaults to iam.grafana.app/v0alpha1.
    kind String
    Kind of the referenced object. Defaults to Team.
    name String
    Name of the referenced object. For the default team reference, this is the Grafana team UID.

    Import

    !/bin/bash Import an existing Service Center component by its UID (the Kubernetes object name).

    $ pulumi import grafana:cloud/v1alpha1/serviceModelComponent:ServiceModelComponent checkout checkout-service
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.38.0
    published on Friday, Aug 7, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial