vcd.ApiFilter
Explore with Pulumi AI
Create ApiFilter Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiFilter(name: string, args: ApiFilterArgs, opts?: CustomResourceOptions);
@overload
def ApiFilter(resource_name: str,
args: ApiFilterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
external_endpoint_id: Optional[str] = None,
url_matcher_pattern: Optional[str] = None,
url_matcher_scope: Optional[str] = None,
api_filter_id: Optional[str] = None)
func NewApiFilter(ctx *Context, name string, args ApiFilterArgs, opts ...ResourceOption) (*ApiFilter, error)
public ApiFilter(string name, ApiFilterArgs args, CustomResourceOptions? opts = null)
public ApiFilter(String name, ApiFilterArgs args)
public ApiFilter(String name, ApiFilterArgs args, CustomResourceOptions options)
type: vcd:ApiFilter
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 ApiFilterArgs
- 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 ApiFilterArgs
- 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 ApiFilterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiFilterArgs
- 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 apiFilterResource = new Vcd.ApiFilter("apiFilterResource", new()
{
ExternalEndpointId = "string",
UrlMatcherPattern = "string",
UrlMatcherScope = "string",
ApiFilterId = "string",
});
example, err := vcd.NewApiFilter(ctx, "apiFilterResource", &vcd.ApiFilterArgs{
ExternalEndpointId: pulumi.String("string"),
UrlMatcherPattern: pulumi.String("string"),
UrlMatcherScope: pulumi.String("string"),
ApiFilterId: pulumi.String("string"),
})
var apiFilterResource = new ApiFilter("apiFilterResource", ApiFilterArgs.builder()
.externalEndpointId("string")
.urlMatcherPattern("string")
.urlMatcherScope("string")
.apiFilterId("string")
.build());
api_filter_resource = vcd.ApiFilter("apiFilterResource",
external_endpoint_id="string",
url_matcher_pattern="string",
url_matcher_scope="string",
api_filter_id="string")
const apiFilterResource = new vcd.ApiFilter("apiFilterResource", {
externalEndpointId: "string",
urlMatcherPattern: "string",
urlMatcherScope: "string",
apiFilterId: "string",
});
type: vcd:ApiFilter
properties:
apiFilterId: string
externalEndpointId: string
urlMatcherPattern: string
urlMatcherScope: string
ApiFilter 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 ApiFilter resource accepts the following input properties:
- External
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- Url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - Url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - Api
Filter stringId
- External
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- Url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - Url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - Api
Filter stringId
- external
Endpoint StringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher StringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher StringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - api
Filter StringId
- external
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - api
Filter stringId
- external_
endpoint_ strid - ID of the External Endpoint where this API Filter will process the requests to
- url_
matcher_ strpattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url_
matcher_ strscope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - api_
filter_ strid
- external
Endpoint StringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher StringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher StringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/ - api
Filter StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiFilter 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 ApiFilter Resource
Get an existing ApiFilter 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?: ApiFilterState, opts?: CustomResourceOptions): ApiFilter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_filter_id: Optional[str] = None,
external_endpoint_id: Optional[str] = None,
url_matcher_pattern: Optional[str] = None,
url_matcher_scope: Optional[str] = None) -> ApiFilter
func GetApiFilter(ctx *Context, name string, id IDInput, state *ApiFilterState, opts ...ResourceOption) (*ApiFilter, error)
public static ApiFilter Get(string name, Input<string> id, ApiFilterState? state, CustomResourceOptions? opts = null)
public static ApiFilter get(String name, Output<String> id, ApiFilterState state, CustomResourceOptions options)
resources: _: type: vcd:ApiFilter 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.
- Api
Filter stringId - External
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- Url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - Url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
- Api
Filter stringId - External
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- Url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - Url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
- api
Filter StringId - external
Endpoint StringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher StringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher StringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
- api
Filter stringId - external
Endpoint stringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher stringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher stringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
- api_
filter_ strid - external_
endpoint_ strid - ID of the External Endpoint where this API Filter will process the requests to
- url_
matcher_ strpattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url_
matcher_ strscope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
- api
Filter StringId - external
Endpoint StringId - ID of the External Endpoint where this API Filter will process the requests to
- url
Matcher StringPattern - Request URL pattern, written as a regular expression. This argument cannot exceed 1024 characters.
In most cases, it should end with
.*
(it is like a suffix) which specifies that all the parts of the URL coming after (like parameters) will be redirected to an external endpoint. It is important to note that in the case ofurl_matcher_scope=EXT_UI_TENANT
, the tenant name is not part of the pattern, it will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against /custom/test - url
Matcher StringScope - Allowed values are
EXT_API
,EXT_UI_PROVIDER
,EXT_UI_TENANT
corresponding to /ext-api, /ext-ui/provider, /ext-ui/tenant/
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.