azure-native.providerhub.OperationByProviderRegistration
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OperationByProviderRegistration resource accepts the following input properties:
- Contents
List<Pulumi.
Azure Native. Provider Hub. Inputs. Operations Definition> - Provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- Contents
[]Operations
Definition Args - Provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- contents
List<Operations
Definition> - provider
Namespace String - The name of the resource provider hosted within ProviderHub.
- contents
Operations
Definition[] - provider
Namespace string - The name of the resource provider hosted within ProviderHub.
- contents
Sequence[Operations
Definition Args] - provider_
namespace str - The name of the resource provider hosted within ProviderHub.
- contents List<Property Map>
- provider
Namespace 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.
Azure Native. Provider Hub. Outputs. Operations Definition Response Display - 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"
- Action
Type string - Is
Data boolAction - Indicates whether the operation applies to data-plane.
- Origin string
- Display
Operations
Definition Response Display - 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"
- Action
Type string - Is
Data boolAction - Indicates whether the operation applies to data-plane.
- Origin string
- display
Operations
Definition Response Display - 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"
- action
Type String - is
Data BooleanAction - Indicates whether the operation applies to data-plane.
- origin String
- display
Operations
Definition Response Display - 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"
- action
Type string - is
Data booleanAction - Indicates whether the operation applies to data-plane.
- origin string
- display
Operations
Definition Response Display - 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_ boolaction - 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"
- action
Type String - is
Data BooleanAction - Indicates whether the operation applies to data-plane.
- origin String
Supporting Types
OperationActionType, OperationActionTypeArgs
- Not
Specified - NotSpecified
- Internal
- Internal
- Operation
Action Type Not Specified - NotSpecified
- Operation
Action Type Internal - Internal
- Not
Specified - NotSpecified
- Internal
- Internal
- Not
Specified - NotSpecified
- Internal
- Internal
- NOT_SPECIFIED
- NotSpecified
- INTERNAL
- Internal
- "Not
Specified" - NotSpecified
- "Internal"
- Internal
OperationOrigins, OperationOriginsArgs
- Not
Specified - NotSpecified
- User
- User
- System
- System
- Operation
Origins Not Specified - NotSpecified
- Operation
Origins User - User
- Operation
Origins System - System
- Not
Specified - NotSpecified
- User
- User
- System
- System
- Not
Specified - NotSpecified
- User
- User
- System
- System
- NOT_SPECIFIED
- NotSpecified
- USER
- User
- SYSTEM
- System
- "Not
Specified" - NotSpecified
- "User"
- User
- "System"
- System
OperationsDefinition, OperationsDefinitionArgs
- Display
Pulumi.
Azure Native. Provider Hub. Inputs. Operations Definition Display - Display information of the operation.
- Name string
- Name of the operation.
- Action
Type string | Pulumi.Azure Native. Provider Hub. Operation Action Type - Is
Data boolAction - Indicates whether the operation applies to data-plane.
- Origin
string | Pulumi.
Azure Native. Provider Hub. Operation Origins - Properties object
- Display
Operations
Definition Display - Display information of the operation.
- Name string
- Name of the operation.
- Action
Type string | OperationAction Type - Is
Data boolAction - Indicates whether the operation applies to data-plane.
- Origin
string | Operation
Origins - Properties interface{}
- display
Operations
Definition Display - Display information of the operation.
- name String
- Name of the operation.
- action
Type String | OperationAction Type - is
Data BooleanAction - Indicates whether the operation applies to data-plane.
- origin
String | Operation
Origins - properties Object
- display
Operations
Definition Display - Display information of the operation.
- name string
- Name of the operation.
- action
Type string | OperationAction Type - is
Data booleanAction - Indicates whether the operation applies to data-plane.
- origin
string | Operation
Origins - properties any
- display
Operations
Definition Display - Display information of the operation.
- name str
- Name of the operation.
- action_
type str | OperationAction Type - is_
data_ boolaction - Indicates whether the operation applies to data-plane.
- origin
str | Operation
Origins - properties Any
- display Property Map
- Display information of the operation.
- name String
- Name of the operation.
- action
Type String | "NotSpecified" | "Internal" - is
Data BooleanAction - Indicates whether the operation applies to data-plane.
- origin
String | "Not
Specified" | "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 str
- operation str
- provider str
- resource str
- 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 str
- operation str
- provider str
- resource str
- 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