1. Packages
  2. Grafana Cloud
  3. API Docs
  4. ServiceAccountPermission
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

grafana.ServiceAccountPermission

Explore with Pulumi AI

grafana logo
Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse

    Create ServiceAccountPermission Resource

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

    Constructor syntax

    new ServiceAccountPermission(name: string, args: ServiceAccountPermissionArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccountPermission(resource_name: str,
                                 args: ServiceAccountPermissionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccountPermission(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 service_account_id: Optional[str] = None,
                                 org_id: Optional[str] = None,
                                 permissions: Optional[Sequence[ServiceAccountPermissionPermissionArgs]] = None)
    func NewServiceAccountPermission(ctx *Context, name string, args ServiceAccountPermissionArgs, opts ...ResourceOption) (*ServiceAccountPermission, error)
    public ServiceAccountPermission(string name, ServiceAccountPermissionArgs args, CustomResourceOptions? opts = null)
    public ServiceAccountPermission(String name, ServiceAccountPermissionArgs args)
    public ServiceAccountPermission(String name, ServiceAccountPermissionArgs args, CustomResourceOptions options)
    
    type: grafana:ServiceAccountPermission
    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 ServiceAccountPermissionArgs
    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 ServiceAccountPermissionArgs
    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 ServiceAccountPermissionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountPermissionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var serviceAccountPermissionResource = new Grafana.ServiceAccountPermission("serviceAccountPermissionResource", new()
    {
        ServiceAccountId = "string",
        OrgId = "string",
        Permissions = new[]
        {
            new Grafana.Inputs.ServiceAccountPermissionPermissionArgs
            {
                Permission = "string",
                TeamId = "string",
                UserId = "string",
            },
        },
    });
    
    example, err := grafana.NewServiceAccountPermission(ctx, "serviceAccountPermissionResource", &grafana.ServiceAccountPermissionArgs{
    	ServiceAccountId: pulumi.String("string"),
    	OrgId:            pulumi.String("string"),
    	Permissions: grafana.ServiceAccountPermissionPermissionArray{
    		&grafana.ServiceAccountPermissionPermissionArgs{
    			Permission: pulumi.String("string"),
    			TeamId:     pulumi.String("string"),
    			UserId:     pulumi.String("string"),
    		},
    	},
    })
    
    var serviceAccountPermissionResource = new ServiceAccountPermission("serviceAccountPermissionResource", ServiceAccountPermissionArgs.builder()        
        .serviceAccountId("string")
        .orgId("string")
        .permissions(ServiceAccountPermissionPermissionArgs.builder()
            .permission("string")
            .teamId("string")
            .userId("string")
            .build())
        .build());
    
    service_account_permission_resource = grafana.ServiceAccountPermission("serviceAccountPermissionResource",
        service_account_id="string",
        org_id="string",
        permissions=[grafana.ServiceAccountPermissionPermissionArgs(
            permission="string",
            team_id="string",
            user_id="string",
        )])
    
    const serviceAccountPermissionResource = new grafana.ServiceAccountPermission("serviceAccountPermissionResource", {
        serviceAccountId: "string",
        orgId: "string",
        permissions: [{
            permission: "string",
            teamId: "string",
            userId: "string",
        }],
    });
    
    type: grafana:ServiceAccountPermission
    properties:
        orgId: string
        permissions:
            - permission: string
              teamId: string
              userId: string
        serviceAccountId: string
    

    ServiceAccountPermission Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServiceAccountPermission resource accepts the following input properties:

    ServiceAccountId string
    The id of the service account.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Permissions List<Pulumiverse.Grafana.Inputs.ServiceAccountPermissionPermission>
    The permission items to add/update. Items that are omitted from the list will be removed.
    ServiceAccountId string
    The id of the service account.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Permissions []ServiceAccountPermissionPermissionArgs
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId String
    The id of the service account.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions List<ServiceAccountPermissionPermission>
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId string
    The id of the service account.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions ServiceAccountPermissionPermission[]
    The permission items to add/update. Items that are omitted from the list will be removed.
    service_account_id str
    The id of the service account.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions Sequence[ServiceAccountPermissionPermissionArgs]
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId String
    The id of the service account.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions List<Property Map>
    The permission items to add/update. Items that are omitted from the list will be removed.

    Outputs

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

    Get an existing ServiceAccountPermission 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?: ServiceAccountPermissionState, opts?: CustomResourceOptions): ServiceAccountPermission
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            org_id: Optional[str] = None,
            permissions: Optional[Sequence[ServiceAccountPermissionPermissionArgs]] = None,
            service_account_id: Optional[str] = None) -> ServiceAccountPermission
    func GetServiceAccountPermission(ctx *Context, name string, id IDInput, state *ServiceAccountPermissionState, opts ...ResourceOption) (*ServiceAccountPermission, error)
    public static ServiceAccountPermission Get(string name, Input<string> id, ServiceAccountPermissionState? state, CustomResourceOptions? opts = null)
    public static ServiceAccountPermission get(String name, Output<String> id, ServiceAccountPermissionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Permissions List<Pulumiverse.Grafana.Inputs.ServiceAccountPermissionPermission>
    The permission items to add/update. Items that are omitted from the list will be removed.
    ServiceAccountId string
    The id of the service account.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Permissions []ServiceAccountPermissionPermissionArgs
    The permission items to add/update. Items that are omitted from the list will be removed.
    ServiceAccountId string
    The id of the service account.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions List<ServiceAccountPermissionPermission>
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId String
    The id of the service account.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions ServiceAccountPermissionPermission[]
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId string
    The id of the service account.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions Sequence[ServiceAccountPermissionPermissionArgs]
    The permission items to add/update. Items that are omitted from the list will be removed.
    service_account_id str
    The id of the service account.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    permissions List<Property Map>
    The permission items to add/update. Items that are omitted from the list will be removed.
    serviceAccountId String
    The id of the service account.

    Supporting Types

    ServiceAccountPermissionPermission, ServiceAccountPermissionPermissionArgs

    Permission string
    Permission to associate with item. Must be Edit or Admin.
    TeamId string
    ID of the team to manage permissions for. Specify either this or user_id.
    UserId string
    ID of the user or service account to manage permissions for. Specify either this or team_id.
    Permission string
    Permission to associate with item. Must be Edit or Admin.
    TeamId string
    ID of the team to manage permissions for. Specify either this or user_id.
    UserId string
    ID of the user or service account to manage permissions for. Specify either this or team_id.
    permission String
    Permission to associate with item. Must be Edit or Admin.
    teamId String
    ID of the team to manage permissions for. Specify either this or user_id.
    userId String
    ID of the user or service account to manage permissions for. Specify either this or team_id.
    permission string
    Permission to associate with item. Must be Edit or Admin.
    teamId string
    ID of the team to manage permissions for. Specify either this or user_id.
    userId string
    ID of the user or service account to manage permissions for. Specify either this or team_id.
    permission str
    Permission to associate with item. Must be Edit or Admin.
    team_id str
    ID of the team to manage permissions for. Specify either this or user_id.
    user_id str
    ID of the user or service account to manage permissions for. Specify either this or team_id.
    permission String
    Permission to associate with item. Must be Edit or Admin.
    teamId String
    ID of the team to manage permissions for. Specify either this or user_id.
    userId String
    ID of the user or service account to manage permissions for. Specify either this or team_id.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.4.2 published on Monday, Apr 15, 2024 by pulumiverse