1. Packages
  2. Azure Native v1
  3. API Docs
  4. providerhub
  5. OperationByProviderRegistration
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.providerhub.OperationByProviderRegistration

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    API Version: 2020-11-20.

    Example Usage

    Operations_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var operationByProviderRegistration = new AzureNative.ProviderHub.OperationByProviderRegistration("operationByProviderRegistration", new()
        {
            Contents = new[]
            {
                new AzureNative.ProviderHub.Inputs.OperationsDefinitionArgs
                {
                    Display = new AzureNative.ProviderHub.Inputs.OperationsDefinitionDisplayArgs
                    {
                        Description = "Read employees",
                        Operation = "Gets/List employee resources",
                        Provider = "Microsoft.Contoso",
                        Resource = "Employees",
                    },
                    Name = "Microsoft.Contoso/Employees/Read",
                },
            },
            ProviderNamespace = "Microsoft.Contoso",
        });
    
    });
    
    package main
    
    import (
    	providerhub "github.com/pulumi/pulumi-azure-native-sdk/providerhub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := providerhub.NewOperationByProviderRegistration(ctx, "operationByProviderRegistration", &providerhub.OperationByProviderRegistrationArgs{
    			Contents: []providerhub.OperationsDefinitionArgs{
    				{
    					Display: {
    						Description: pulumi.String("Read employees"),
    						Operation:   pulumi.String("Gets/List employee resources"),
    						Provider:    pulumi.String("Microsoft.Contoso"),
    						Resource:    pulumi.String("Employees"),
    					},
    					Name: pulumi.String("Microsoft.Contoso/Employees/Read"),
    				},
    			},
    			ProviderNamespace: pulumi.String("Microsoft.Contoso"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.providerhub.OperationByProviderRegistration;
    import com.pulumi.azurenative.providerhub.OperationByProviderRegistrationArgs;
    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 operationByProviderRegistration = new OperationByProviderRegistration("operationByProviderRegistration", OperationByProviderRegistrationArgs.builder()        
                .contents(Map.ofEntries(
                    Map.entry("display", Map.ofEntries(
                        Map.entry("description", "Read employees"),
                        Map.entry("operation", "Gets/List employee resources"),
                        Map.entry("provider", "Microsoft.Contoso"),
                        Map.entry("resource", "Employees")
                    )),
                    Map.entry("name", "Microsoft.Contoso/Employees/Read")
                ))
                .providerNamespace("Microsoft.Contoso")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    operation_by_provider_registration = azure_native.providerhub.OperationByProviderRegistration("operationByProviderRegistration",
        contents=[azure_native.providerhub.OperationsDefinitionArgs(
            display=azure_native.providerhub.OperationsDefinitionDisplayArgs(
                description="Read employees",
                operation="Gets/List employee resources",
                provider="Microsoft.Contoso",
                resource="Employees",
            ),
            name="Microsoft.Contoso/Employees/Read",
        )],
        provider_namespace="Microsoft.Contoso")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const operationByProviderRegistration = new azure_native.providerhub.OperationByProviderRegistration("operationByProviderRegistration", {
        contents: [{
            display: {
                description: "Read employees",
                operation: "Gets/List employee resources",
                provider: "Microsoft.Contoso",
                resource: "Employees",
            },
            name: "Microsoft.Contoso/Employees/Read",
        }],
        providerNamespace: "Microsoft.Contoso",
    });
    
    resources:
      operationByProviderRegistration:
        type: azure-native:providerhub:OperationByProviderRegistration
        properties:
          contents:
            - display:
                description: Read employees
                operation: Gets/List employee resources
                provider: Microsoft.Contoso
                resource: Employees
              name: Microsoft.Contoso/Employees/Read
          providerNamespace: Microsoft.Contoso
    

    Create OperationByProviderRegistration Resource

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

    Constructor syntax

    new OperationByProviderRegistration(name: string, args: OperationByProviderRegistrationArgs, opts?: CustomResourceOptions);
    @overload
    def OperationByProviderRegistration(resource_name: str,
                                        args: OperationByProviderRegistrationArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def OperationByProviderRegistration(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        contents: Optional[Sequence[OperationsDefinitionArgs]] = None,
                                        provider_namespace: Optional[str] = None)
    func NewOperationByProviderRegistration(ctx *Context, name string, args OperationByProviderRegistrationArgs, opts ...ResourceOption) (*OperationByProviderRegistration, error)
    public OperationByProviderRegistration(string name, OperationByProviderRegistrationArgs args, CustomResourceOptions? opts = null)
    public OperationByProviderRegistration(String name, OperationByProviderRegistrationArgs args)
    public OperationByProviderRegistration(String name, OperationByProviderRegistrationArgs args, CustomResourceOptions options)
    
    type: azure-native:providerhub:OperationByProviderRegistration
    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 OperationByProviderRegistrationArgs
    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 OperationByProviderRegistrationArgs
    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 OperationByProviderRegistrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OperationByProviderRegistrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OperationByProviderRegistrationArgs
    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 operationByProviderRegistrationResource = new AzureNative.Providerhub.OperationByProviderRegistration("operationByProviderRegistrationResource", new()
    {
        Contents = new[]
        {
            
            {
                { "display", 
                {
                    { "description", "string" },
                    { "operation", "string" },
                    { "provider", "string" },
                    { "resource", "string" },
                } },
                { "name", "string" },
                { "actionType", "string" },
                { "isDataAction", false },
                { "origin", "string" },
                { "properties", "any" },
            },
        },
        ProviderNamespace = "string",
    });
    
    example, err := providerhub.NewOperationByProviderRegistration(ctx, "operationByProviderRegistrationResource", &providerhub.OperationByProviderRegistrationArgs{
    	Contents: []map[string]interface{}{
    		map[string]interface{}{
    			"display": map[string]interface{}{
    				"description": "string",
    				"operation":   "string",
    				"provider":    "string",
    				"resource":    "string",
    			},
    			"name":         "string",
    			"actionType":   "string",
    			"isDataAction": false,
    			"origin":       "string",
    			"properties":   "any",
    		},
    	},
    	ProviderNamespace: "string",
    })
    
    var operationByProviderRegistrationResource = new OperationByProviderRegistration("operationByProviderRegistrationResource", OperationByProviderRegistrationArgs.builder()
        .contents(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .providerNamespace("string")
        .build());
    
    operation_by_provider_registration_resource = azure_native.providerhub.OperationByProviderRegistration("operationByProviderRegistrationResource",
        contents=[{
            display: {
                description: string,
                operation: string,
                provider: string,
                resource: string,
            },
            name: string,
            actionType: string,
            isDataAction: False,
            origin: string,
            properties: any,
        }],
        provider_namespace=string)
    
    const operationByProviderRegistrationResource = new azure_native.providerhub.OperationByProviderRegistration("operationByProviderRegistrationResource", {
        contents: [{
            display: {
                description: "string",
                operation: "string",
                provider: "string",
                resource: "string",
            },
            name: "string",
            actionType: "string",
            isDataAction: false,
            origin: "string",
            properties: "any",
        }],
        providerNamespace: "string",
    });
    
    type: azure-native:providerhub:OperationByProviderRegistration
    properties:
        contents:
            - actionType: string
              display:
                description: string
                operation: string
                provider: string
                resource: string
              isDataAction: false
              name: string
              origin: string
              properties: any
        providerNamespace: string
    

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

    Contents List<Pulumi.AzureNative.ProviderHub.Inputs.OperationsDefinition>
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    Contents []OperationsDefinitionArgs
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    contents List<OperationsDefinition>
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    contents OperationsDefinition[]
    providerNamespace string
    The name of the resource provider hosted within ProviderHub.
    contents Sequence[OperationsDefinitionArgs]
    provider_namespace str
    The name of the resource provider hosted within ProviderHub.
    contents List<Property Map>
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OperationByProviderRegistration resource produces the following output properties:

    Display Pulumi.AzureNative.ProviderHub.Outputs.OperationsDefinitionResponseDisplay
    Display information of the operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Properties object
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ActionType string
    IsDataAction bool
    Indicates whether the operation applies to data-plane.
    Origin string
    Display OperationsDefinitionResponseDisplay
    Display information of the operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Properties interface{}
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    ActionType string
    IsDataAction bool
    Indicates whether the operation applies to data-plane.
    Origin string
    display OperationsDefinitionResponseDisplay
    Display information of the operation.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    properties Object
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    actionType String
    isDataAction Boolean
    Indicates whether the operation applies to data-plane.
    origin String
    display OperationsDefinitionResponseDisplay
    Display information of the operation.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    properties any
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    actionType string
    isDataAction boolean
    Indicates whether the operation applies to data-plane.
    origin string
    display OperationsDefinitionResponseDisplay
    Display information of the operation.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    properties Any
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    action_type str
    is_data_action bool
    Indicates whether the operation applies to data-plane.
    origin str
    display Property Map
    Display information of the operation.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    properties Any
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    actionType String
    isDataAction Boolean
    Indicates whether the operation applies to data-plane.
    origin String

    Supporting Types

    OperationActionType, OperationActionTypeArgs

    NotSpecified
    NotSpecified
    Internal
    Internal
    OperationActionTypeNotSpecified
    NotSpecified
    OperationActionTypeInternal
    Internal
    NotSpecified
    NotSpecified
    Internal
    Internal
    NotSpecified
    NotSpecified
    Internal
    Internal
    NOT_SPECIFIED
    NotSpecified
    INTERNAL
    Internal
    "NotSpecified"
    NotSpecified
    "Internal"
    Internal

    OperationOrigins, OperationOriginsArgs

    NotSpecified
    NotSpecified
    User
    User
    System
    System
    OperationOriginsNotSpecified
    NotSpecified
    OperationOriginsUser
    User
    OperationOriginsSystem
    System
    NotSpecified
    NotSpecified
    User
    User
    System
    System
    NotSpecified
    NotSpecified
    User
    User
    System
    System
    NOT_SPECIFIED
    NotSpecified
    USER
    User
    SYSTEM
    System
    "NotSpecified"
    NotSpecified
    "User"
    User
    "System"
    System

    OperationsDefinition, OperationsDefinitionArgs

    Display Pulumi.AzureNative.ProviderHub.Inputs.OperationsDefinitionDisplay
    Display information of the operation.
    Name string
    Name of the operation.
    ActionType string | Pulumi.AzureNative.ProviderHub.OperationActionType
    IsDataAction bool
    Indicates whether the operation applies to data-plane.
    Origin string | Pulumi.AzureNative.ProviderHub.OperationOrigins
    Properties object
    Display OperationsDefinitionDisplay
    Display information of the operation.
    Name string
    Name of the operation.
    ActionType string | OperationActionType
    IsDataAction bool
    Indicates whether the operation applies to data-plane.
    Origin string | OperationOrigins
    Properties interface{}
    display OperationsDefinitionDisplay
    Display information of the operation.
    name String
    Name of the operation.
    actionType String | OperationActionType
    isDataAction Boolean
    Indicates whether the operation applies to data-plane.
    origin String | OperationOrigins
    properties Object
    display OperationsDefinitionDisplay
    Display information of the operation.
    name string
    Name of the operation.
    actionType string | OperationActionType
    isDataAction boolean
    Indicates whether the operation applies to data-plane.
    origin string | OperationOrigins
    properties any
    display OperationsDefinitionDisplay
    Display information of the operation.
    name str
    Name of the operation.
    action_type str | OperationActionType
    is_data_action bool
    Indicates whether the operation applies to data-plane.
    origin str | OperationOrigins
    properties Any
    display Property Map
    Display information of the operation.
    name String
    Name of the operation.
    actionType String | "NotSpecified" | "Internal"
    isDataAction Boolean
    Indicates whether the operation applies to data-plane.
    origin String | "NotSpecified" | "User" | "System"
    properties Any

    OperationsDefinitionDisplay, OperationsDefinitionDisplayArgs

    Description string
    Operation string
    Provider string
    Resource string
    Description string
    Operation string
    Provider string
    Resource string
    description String
    operation String
    provider String
    resource String
    description string
    operation string
    provider string
    resource string
    description String
    operation String
    provider String
    resource String

    OperationsDefinitionResponseDisplay, OperationsDefinitionResponseDisplayArgs

    Description string
    Operation string
    Provider string
    Resource string
    Description string
    Operation string
    Provider string
    Resource string
    description String
    operation String
    provider String
    resource String
    description string
    operation string
    provider string
    resource string
    description String
    operation String
    provider String
    resource String

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:providerhub:OperationByProviderRegistration myresource1 /subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations/{providerNamespace}/operations/default 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi