1. Packages
  2. ACI
  3. API Docs
  4. apic
  5. Rest
ACI v0.0.6 published on Thursday, Aug 31, 2023 by Cisco

aci.apic.Rest

Explore with Pulumi AI

aci logo
ACI v0.0.6 published on Thursday, Aug 31, 2023 by Cisco

    Manages ACI Model Objects via REST API calls. This resource can only manage a single API object.

    Create Rest Resource

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

    Constructor syntax

    new Rest(name: string, args: RestArgs, opts?: CustomResourceOptions);
    @overload
    def Rest(resource_name: str,
             args: RestArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rest(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             class_name: Optional[str] = None,
             dn: Optional[str] = None,
             children: Optional[Sequence[ChildArgs]] = None,
             content: Optional[Mapping[str, str]] = None)
    func NewRest(ctx *Context, name string, args RestArgs, opts ...ResourceOption) (*Rest, error)
    public Rest(string name, RestArgs args, CustomResourceOptions? opts = null)
    public Rest(String name, RestArgs args)
    public Rest(String name, RestArgs args, CustomResourceOptions options)
    
    type: aci:apic:Rest
    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 RestArgs
    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 RestArgs
    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 RestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RestArgs
    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 restResource = new Aci.Apic.Rest("restResource", new()
    {
        Class_name = "string",
        Dn = "string",
        Children = new[]
        {
            new Aci.Apic.Inputs.ChildArgs
            {
                Class_name = "string",
                Rn = "string",
                Content = 
                {
                    { "string", "string" },
                },
            },
        },
        Content = 
        {
            { "string", "string" },
        },
    });
    
    example, err := apic.NewRest(ctx, "restResource", &apic.RestArgs{
    	Class_name: pulumi.String("string"),
    	Dn:         pulumi.String("string"),
    	Children: apic.ChildArray{
    		&apic.ChildArgs{
    			Class_name: pulumi.String("string"),
    			Rn:         pulumi.String("string"),
    			Content: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Content: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var restResource = new Rest("restResource", RestArgs.builder()
        .class_name("string")
        .dn("string")
        .children(ChildArgs.builder()
            .class_name("string")
            .rn("string")
            .content(Map.of("string", "string"))
            .build())
        .content(Map.of("string", "string"))
        .build());
    
    rest_resource = aci.apic.Rest("restResource",
        class_name="string",
        dn="string",
        children=[aci.apic.ChildArgs(
            class_name="string",
            rn="string",
            content={
                "string": "string",
            },
        )],
        content={
            "string": "string",
        })
    
    const restResource = new aci.apic.Rest("restResource", {
        class_name: "string",
        dn: "string",
        children: [{
            class_name: "string",
            rn: "string",
            content: {
                string: "string",
            },
        }],
        content: {
            string: "string",
        },
    });
    
    type: aci:apic:Rest
    properties:
        children:
            - class_name: string
              content:
                string: string
              rn: string
        class_name: string
        content:
            string: string
        dn: string
    

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

    Class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    Dn string
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    Children List<Child>
    List of child objects to be created. Each child object must have a unique relative name.
    Content Dictionary<string, string>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    Class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    Dn string
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    Children []ChildArgs
    List of child objects to be created. Each child object must have a unique relative name.
    Content map[string]string
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name String
    Which class object is being created. (Make sure there is no colon in the classname)
    dn String
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    children List<Child>
    List of child objects to be created. Each child object must have a unique relative name.
    content Map<String,String>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    dn string
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    children Child[]
    List of child objects to be created. Each child object must have a unique relative name.
    content {[key: string]: string}
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name str
    Which class object is being created. (Make sure there is no colon in the classname)
    dn str
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    children Sequence[ChildArgs]
    List of child objects to be created. Each child object must have a unique relative name.
    content Mapping[str, str]
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name String
    Which class object is being created. (Make sure there is no colon in the classname)
    dn String
    Distinguished name of object being managed including its relative name, e.g. uni/tn-EXAMPLE_TENANT.
    children List<Property Map>
    List of child objects to be created. Each child object must have a unique relative name.
    content Map<String>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.

    Outputs

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

    Supporting Types

    Child, ChildArgs

    Class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    Rn string
    Relative name of child object.
    Content Dictionary<string, string>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    Class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    Rn string
    Relative name of child object.
    Content map[string]string
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name String
    Which class object is being created. (Make sure there is no colon in the classname)
    rn String
    Relative name of child object.
    content Map<String,String>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name string
    Which class object is being created. (Make sure there is no colon in the classname)
    rn string
    Relative name of child object.
    content {[key: string]: string}
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name str
    Which class object is being created. (Make sure there is no colon in the classname)
    rn str
    Relative name of child object.
    content Mapping[str, str]
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.
    class_name String
    Which class object is being created. (Make sure there is no colon in the classname)
    rn String
    Relative name of child object.
    content Map<String>
    Map of key-value pairs those needed to be passed to the Model object as parameters. Make sure the key name matches the name with the object parameter in ACI.

    Package Details

    Repository
    aci netascode/pulumi-aci
    License
    MPL-2.0
    aci logo
    ACI v0.0.6 published on Thursday, Aug 31, 2023 by Cisco