prismacloud.ResourceList
Explore with Pulumi AI
Manage a resource list.
Example Usage
With Tags)
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.ResourceList("example", {
members: [{
tags: [
{
key: "key1",
value: "value1",
},
{
key: "key2",
value: "value2",
},
],
}],
resourceListType: "TAG",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.ResourceList("example",
members=[{
"tags": [
{
"key": "key1",
"value": "value1",
},
{
"key": "key2",
"value": "value2",
},
],
}],
resource_list_type="TAG")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.NewResourceList(ctx, "example", &prismacloud.ResourceListArgs{
Members: prismacloud.ResourceListMemberArray{
&prismacloud.ResourceListMemberArgs{
Tags: prismacloud.ResourceListMemberTagArray{
&prismacloud.ResourceListMemberTagArgs{
Key: pulumi.String("key1"),
Value: pulumi.String("value1"),
},
&prismacloud.ResourceListMemberTagArgs{
Key: pulumi.String("key2"),
Value: pulumi.String("value2"),
},
},
},
},
ResourceListType: pulumi.String("TAG"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = new Prismacloud.ResourceList("example", new()
{
Members = new[]
{
new Prismacloud.Inputs.ResourceListMemberArgs
{
Tags = new[]
{
new Prismacloud.Inputs.ResourceListMemberTagArgs
{
Key = "key1",
Value = "value1",
},
new Prismacloud.Inputs.ResourceListMemberTagArgs
{
Key = "key2",
Value = "value2",
},
},
},
},
ResourceListType = "TAG",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.ResourceList;
import com.pulumi.prismacloud.ResourceListArgs;
import com.pulumi.prismacloud.inputs.ResourceListMemberArgs;
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 example = new ResourceList("example", ResourceListArgs.builder()
.members(ResourceListMemberArgs.builder()
.tags(
ResourceListMemberTagArgs.builder()
.key("key1")
.value("value1")
.build(),
ResourceListMemberTagArgs.builder()
.key("key2")
.value("value2")
.build())
.build())
.resourceListType("TAG")
.build());
}
}
resources:
example:
type: prismacloud:ResourceList
properties:
members:
- tags:
- key: key1
value: value1
- key: key2
value: value2
resourceListType: TAG
With Azure Resource Groups)
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.ResourceList("example", {
members: [{
azureResourceGroups: [
"resource-groups-1",
"resource-group-2",
],
}],
resourceListType: "RESOURCE_GROUP",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.ResourceList("example",
members=[{
"azure_resource_groups": [
"resource-groups-1",
"resource-group-2",
],
}],
resource_list_type="RESOURCE_GROUP")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.NewResourceList(ctx, "example", &prismacloud.ResourceListArgs{
Members: prismacloud.ResourceListMemberArray{
&prismacloud.ResourceListMemberArgs{
AzureResourceGroups: pulumi.StringArray{
pulumi.String("resource-groups-1"),
pulumi.String("resource-group-2"),
},
},
},
ResourceListType: pulumi.String("RESOURCE_GROUP"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = new Prismacloud.ResourceList("example", new()
{
Members = new[]
{
new Prismacloud.Inputs.ResourceListMemberArgs
{
AzureResourceGroups = new[]
{
"resource-groups-1",
"resource-group-2",
},
},
},
ResourceListType = "RESOURCE_GROUP",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.ResourceList;
import com.pulumi.prismacloud.ResourceListArgs;
import com.pulumi.prismacloud.inputs.ResourceListMemberArgs;
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 example = new ResourceList("example", ResourceListArgs.builder()
.members(ResourceListMemberArgs.builder()
.azureResourceGroups(
"resource-groups-1",
"resource-group-2")
.build())
.resourceListType("RESOURCE_GROUP")
.build());
}
}
resources:
example:
type: prismacloud:ResourceList
properties:
members:
- azureResourceGroups:
- resource-groups-1
- resource-group-2
resourceListType: RESOURCE_GROUP
With Compute Access Groups)
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.ResourceList;
import com.pulumi.prismacloud.ResourceListArgs;
import com.pulumi.prismacloud.inputs.ResourceListMemberArgs;
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 example = new ResourceList("example", ResourceListArgs.builder()
.members(ResourceListMemberArgs.builder()
.computeAccessGroups(ResourceListMemberComputeAccessGroupArgs.builder()
.appId("*")
.clusters("*")
.codeRepos("*")
.containers("*")
.functions("*")
.hosts("*")
.images("*")
.labels("*")
.namespaces("*")
.build())
.build())
.resourceListType("COMPUTE_ACCESS_GROUP")
.build());
}
}
resources:
example:
type: prismacloud:ResourceList
properties:
members:
- computeAccessGroups:
- appId:
- '*'
clusters:
- '*'
codeRepos:
- '*'
containers:
- '*'
functions:
- '*'
hosts:
- '*'
images:
- '*'
labels:
- '*'
namespaces:
- '*'
resourceListType: COMPUTE_ACCESS_GROUP
Create ResourceList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceList(name: string, args: ResourceListArgs, opts?: CustomResourceOptions);
@overload
def ResourceList(resource_name: str,
args: ResourceListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceList(resource_name: str,
opts: Optional[ResourceOptions] = None,
members: Optional[Sequence[ResourceListMemberArgs]] = None,
resource_list_type: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewResourceList(ctx *Context, name string, args ResourceListArgs, opts ...ResourceOption) (*ResourceList, error)
public ResourceList(string name, ResourceListArgs args, CustomResourceOptions? opts = null)
public ResourceList(String name, ResourceListArgs args)
public ResourceList(String name, ResourceListArgs args, CustomResourceOptions options)
type: prismacloud:ResourceList
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 ResourceListArgs
- 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 ResourceListArgs
- 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 ResourceListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceListArgs
- 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 resourceListResource = new Prismacloud.ResourceList("resourceListResource", new()
{
Members = new[]
{
new Prismacloud.Inputs.ResourceListMemberArgs
{
AzureResourceGroups = new[]
{
"string",
},
ComputeAccessGroups = new[]
{
new Prismacloud.Inputs.ResourceListMemberComputeAccessGroupArgs
{
AppIds = new[]
{
"string",
},
Clusters = new[]
{
"string",
},
CodeRepos = new[]
{
"string",
},
Containers = new[]
{
"string",
},
Functions = new[]
{
"string",
},
Hosts = new[]
{
"string",
},
Images = new[]
{
"string",
},
Labels = new[]
{
"string",
},
Namespaces = new[]
{
"string",
},
},
},
Tags = new[]
{
new Prismacloud.Inputs.ResourceListMemberTagArgs
{
Key = "string",
Value = "string",
},
},
},
},
ResourceListType = "string",
Description = "string",
Name = "string",
});
example, err := prismacloud.NewResourceList(ctx, "resourceListResource", &prismacloud.ResourceListArgs{
Members: prismacloud.ResourceListMemberArray{
&prismacloud.ResourceListMemberArgs{
AzureResourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
ComputeAccessGroups: prismacloud.ResourceListMemberComputeAccessGroupArray{
&prismacloud.ResourceListMemberComputeAccessGroupArgs{
AppIds: pulumi.StringArray{
pulumi.String("string"),
},
Clusters: pulumi.StringArray{
pulumi.String("string"),
},
CodeRepos: pulumi.StringArray{
pulumi.String("string"),
},
Containers: pulumi.StringArray{
pulumi.String("string"),
},
Functions: pulumi.StringArray{
pulumi.String("string"),
},
Hosts: pulumi.StringArray{
pulumi.String("string"),
},
Images: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringArray{
pulumi.String("string"),
},
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Tags: prismacloud.ResourceListMemberTagArray{
&prismacloud.ResourceListMemberTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
ResourceListType: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var resourceListResource = new ResourceList("resourceListResource", ResourceListArgs.builder()
.members(ResourceListMemberArgs.builder()
.azureResourceGroups("string")
.computeAccessGroups(ResourceListMemberComputeAccessGroupArgs.builder()
.appIds("string")
.clusters("string")
.codeRepos("string")
.containers("string")
.functions("string")
.hosts("string")
.images("string")
.labels("string")
.namespaces("string")
.build())
.tags(ResourceListMemberTagArgs.builder()
.key("string")
.value("string")
.build())
.build())
.resourceListType("string")
.description("string")
.name("string")
.build());
resource_list_resource = prismacloud.ResourceList("resourceListResource",
members=[{
"azure_resource_groups": ["string"],
"compute_access_groups": [{
"app_ids": ["string"],
"clusters": ["string"],
"code_repos": ["string"],
"containers": ["string"],
"functions": ["string"],
"hosts": ["string"],
"images": ["string"],
"labels": ["string"],
"namespaces": ["string"],
}],
"tags": [{
"key": "string",
"value": "string",
}],
}],
resource_list_type="string",
description="string",
name="string")
const resourceListResource = new prismacloud.ResourceList("resourceListResource", {
members: [{
azureResourceGroups: ["string"],
computeAccessGroups: [{
appIds: ["string"],
clusters: ["string"],
codeRepos: ["string"],
containers: ["string"],
functions: ["string"],
hosts: ["string"],
images: ["string"],
labels: ["string"],
namespaces: ["string"],
}],
tags: [{
key: "string",
value: "string",
}],
}],
resourceListType: "string",
description: "string",
name: "string",
});
type: prismacloud:ResourceList
properties:
description: string
members:
- azureResourceGroups:
- string
computeAccessGroups:
- appIds:
- string
clusters:
- string
codeRepos:
- string
containers:
- string
functions:
- string
hosts:
- string
images:
- string
labels:
- string
namespaces:
- string
tags:
- key: string
value: string
name: string
resourceListType: string
ResourceList 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 ResourceList resource accepts the following input properties:
- Members
List<Resource
List Member> - Associated resource list members as defined below.
- Resource
List stringType - Type of the resource list.
- Description string
- Description of the resource list.
- Name string
- Name of the resource list.
- Members
[]Resource
List Member Args - Associated resource list members as defined below.
- Resource
List stringType - Type of the resource list.
- Description string
- Description of the resource list.
- Name string
- Name of the resource list.
- members
List<Resource
List Member> - Associated resource list members as defined below.
- resource
List StringType - Type of the resource list.
- description String
- Description of the resource list.
- name String
- Name of the resource list.
- members
Resource
List Member[] - Associated resource list members as defined below.
- resource
List stringType - Type of the resource list.
- description string
- Description of the resource list.
- name string
- Name of the resource list.
- members
Sequence[Resource
List Member Args] - Associated resource list members as defined below.
- resource_
list_ strtype - Type of the resource list.
- description str
- Description of the resource list.
- name str
- Name of the resource list.
- members List<Property Map>
- Associated resource list members as defined below.
- resource
List StringType - Type of the resource list.
- description String
- Description of the resource list.
- name String
- Name of the resource list.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceList resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringBy - Last modified by.
- Last
Modified doubleTs - (int) Last modified timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringBy - Last modified by.
- Last
Modified float64Ts - (int) Last modified timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringBy - Last modified by.
- last
Modified DoubleTs - (int) Last modified timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringBy - Last modified by.
- last
Modified numberTs - (int) Last modified timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strby - Last modified by.
- last_
modified_ floatts - (int) Last modified timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringBy - Last modified by.
- last
Modified NumberTs - (int) Last modified timestamp.
Look up Existing ResourceList Resource
Get an existing ResourceList 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?: ResourceListState, opts?: CustomResourceOptions): ResourceList
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
last_modified_by: Optional[str] = None,
last_modified_ts: Optional[float] = None,
members: Optional[Sequence[ResourceListMemberArgs]] = None,
name: Optional[str] = None,
resource_list_type: Optional[str] = None) -> ResourceList
func GetResourceList(ctx *Context, name string, id IDInput, state *ResourceListState, opts ...ResourceOption) (*ResourceList, error)
public static ResourceList Get(string name, Input<string> id, ResourceListState? state, CustomResourceOptions? opts = null)
public static ResourceList get(String name, Output<String> id, ResourceListState state, CustomResourceOptions options)
resources: _: type: prismacloud:ResourceList get: 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.
- Description string
- Description of the resource list.
- Last
Modified stringBy - Last modified by.
- Last
Modified doubleTs - (int) Last modified timestamp.
- Members
List<Resource
List Member> - Associated resource list members as defined below.
- Name string
- Name of the resource list.
- Resource
List stringType - Type of the resource list.
- Description string
- Description of the resource list.
- Last
Modified stringBy - Last modified by.
- Last
Modified float64Ts - (int) Last modified timestamp.
- Members
[]Resource
List Member Args - Associated resource list members as defined below.
- Name string
- Name of the resource list.
- Resource
List stringType - Type of the resource list.
- description String
- Description of the resource list.
- last
Modified StringBy - Last modified by.
- last
Modified DoubleTs - (int) Last modified timestamp.
- members
List<Resource
List Member> - Associated resource list members as defined below.
- name String
- Name of the resource list.
- resource
List StringType - Type of the resource list.
- description string
- Description of the resource list.
- last
Modified stringBy - Last modified by.
- last
Modified numberTs - (int) Last modified timestamp.
- members
Resource
List Member[] - Associated resource list members as defined below.
- name string
- Name of the resource list.
- resource
List stringType - Type of the resource list.
- description str
- Description of the resource list.
- last_
modified_ strby - Last modified by.
- last_
modified_ floatts - (int) Last modified timestamp.
- members
Sequence[Resource
List Member Args] - Associated resource list members as defined below.
- name str
- Name of the resource list.
- resource_
list_ strtype - Type of the resource list.
- description String
- Description of the resource list.
- last
Modified StringBy - Last modified by.
- last
Modified NumberTs - (int) Last modified timestamp.
- members List<Property Map>
- Associated resource list members as defined below.
- name String
- Name of the resource list.
- resource
List StringType - Type of the resource list.
Supporting Types
ResourceListMember, ResourceListMemberArgs
- Azure
Resource List<string>Groups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- Compute
Access List<ResourceGroups List Member Compute Access Group> - Associated resource list Compute Access Groups as defined below
- List<Resource
List Member Tag> - Associated resource list tags as defined below
- Azure
Resource []stringGroups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- Compute
Access []ResourceGroups List Member Compute Access Group - Associated resource list Compute Access Groups as defined below
- []Resource
List Member Tag - Associated resource list tags as defined below
- azure
Resource List<String>Groups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- compute
Access List<ResourceGroups List Member Compute Access Group> - Associated resource list Compute Access Groups as defined below
- List<Resource
List Member Tag> - Associated resource list tags as defined below
- azure
Resource string[]Groups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- compute
Access ResourceGroups List Member Compute Access Group[] - Associated resource list Compute Access Groups as defined below
- Resource
List Member Tag[] - Associated resource list tags as defined below
- azure_
resource_ Sequence[str]groups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- compute_
access_ Sequence[Resourcegroups List Member Compute Access Group] - Associated resource list Compute Access Groups as defined below
- Sequence[Resource
List Member Tag] - Associated resource list tags as defined below
- azure
Resource List<String>Groups - Consists of a list of Azure Resource Groups IDs associated with the resource list.
- compute
Access List<Property Map>Groups - Associated resource list Compute Access Groups as defined below
- List<Property Map>
- Associated resource list tags as defined below
ResourceListMemberComputeAccessGroup, ResourceListMemberComputeAccessGroupArgs
- App
Ids List<string> - (Optional) App id
- Clusters List<string>
- (Optional) Clusters
- Code
Repos List<string> - (Optional) Code repos
- Containers List<string>
- (Optional) Containers
- Functions List<string>
- (Optional) Functions
- Hosts List<string>
- (Optional) Hosts
- Images List<string>
- (Optional) Images
- Labels List<string>
- (Optional) Labels
- Namespaces List<string>
- (Optional) Namespaces
- App
Ids []string - (Optional) App id
- Clusters []string
- (Optional) Clusters
- Code
Repos []string - (Optional) Code repos
- Containers []string
- (Optional) Containers
- Functions []string
- (Optional) Functions
- Hosts []string
- (Optional) Hosts
- Images []string
- (Optional) Images
- Labels []string
- (Optional) Labels
- Namespaces []string
- (Optional) Namespaces
- app
Ids List<String> - (Optional) App id
- clusters List<String>
- (Optional) Clusters
- code
Repos List<String> - (Optional) Code repos
- containers List<String>
- (Optional) Containers
- functions List<String>
- (Optional) Functions
- hosts List<String>
- (Optional) Hosts
- images List<String>
- (Optional) Images
- labels List<String>
- (Optional) Labels
- namespaces List<String>
- (Optional) Namespaces
- app
Ids string[] - (Optional) App id
- clusters string[]
- (Optional) Clusters
- code
Repos string[] - (Optional) Code repos
- containers string[]
- (Optional) Containers
- functions string[]
- (Optional) Functions
- hosts string[]
- (Optional) Hosts
- images string[]
- (Optional) Images
- labels string[]
- (Optional) Labels
- namespaces string[]
- (Optional) Namespaces
- app_
ids Sequence[str] - (Optional) App id
- clusters Sequence[str]
- (Optional) Clusters
- code_
repos Sequence[str] - (Optional) Code repos
- containers Sequence[str]
- (Optional) Containers
- functions Sequence[str]
- (Optional) Functions
- hosts Sequence[str]
- (Optional) Hosts
- images Sequence[str]
- (Optional) Images
- labels Sequence[str]
- (Optional) Labels
- namespaces Sequence[str]
- (Optional) Namespaces
- app
Ids List<String> - (Optional) App id
- clusters List<String>
- (Optional) Clusters
- code
Repos List<String> - (Optional) Code repos
- containers List<String>
- (Optional) Containers
- functions List<String>
- (Optional) Functions
- hosts List<String>
- (Optional) Hosts
- images List<String>
- (Optional) Images
- labels List<String>
- (Optional) Labels
- namespaces List<String>
- (Optional) Namespaces
ResourceListMemberTag, ResourceListMemberTagArgs
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.