vcd.getSubscribedCatalog
Explore with Pulumi AI
Provides a VMware Cloud Director subscribed catalog resource. This can be used to read a subscribed catalog.
A vcd.SubscribedCatalog
is a catalog that was created by subscribing to another catalog. It can be used, to some extent,
like any other catalog, but users must keep in mind that this resource depends on the connection to another catalog, which
may not even be in the same VCD. For more information, see the full Catalog subscription and sharing guide.
Supported in provider v3.8+
Example
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const subscriber = vcd.getSubscribedCatalog({
name: "subscriber",
org: "my-org",
});
import pulumi
import pulumi_vcd as vcd
subscriber = vcd.get_subscribed_catalog(name="subscriber",
org="my-org")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vcd.LookupSubscribedCatalog(ctx, &vcd.LookupSubscribedCatalogArgs{
Name: "subscriber",
Org: pulumi.StringRef("my-org"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var subscriber = Vcd.GetSubscribedCatalog.Invoke(new()
{
Name = "subscriber",
Org = "my-org",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetSubscribedCatalogArgs;
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) {
final var subscriber = VcdFunctions.getSubscribedCatalog(GetSubscribedCatalogArgs.builder()
.name("subscriber")
.org("my-org")
.build());
}
}
variables:
subscriber:
fn::invoke:
function: vcd:getSubscribedCatalog
arguments:
name: subscriber
org: my-org
Filter arguments
name_regex
(Optional) matches the name using a regular expression.date
(Optional) is an expression starting with an operator (>
,<
,>=
,<=
,==
), followed by a date, with optional spaces in between. For example:> 2020-02-01 12:35:00.523Z
The filter recognizes several formats, but one ofyyyy-mm-dd [hh:mm[:ss[.nnnZ]]]
ordd-MMM-yyyy [hh:mm[:ss[.nnnZ]]]
is recommended. Comparison with equality operator (==
) need to define the date to the microseconds.latest
(Optional) Iftrue
, retrieve the latest item among the ones matching other parameters. If no other parameters are set, it retrieves the newest item.earliest
(Optional) Iftrue
, retrieve the earliest item among the ones matching other parameters. If no other parameters are set, it retrieves the oldest item.metadata
(Optional) One or more parameters that will match metadata contents.
See Filters reference for details and examples.
Using getSubscribedCatalog
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSubscribedCatalog(args: GetSubscribedCatalogArgs, opts?: InvokeOptions): Promise<GetSubscribedCatalogResult>
function getSubscribedCatalogOutput(args: GetSubscribedCatalogOutputArgs, opts?: InvokeOptions): Output<GetSubscribedCatalogResult>
def get_subscribed_catalog(filter: Optional[GetSubscribedCatalogFilter] = None,
id: Optional[str] = None,
name: Optional[str] = None,
org: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscribedCatalogResult
def get_subscribed_catalog_output(filter: Optional[pulumi.Input[GetSubscribedCatalogFilterArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscribedCatalogResult]
func LookupSubscribedCatalog(ctx *Context, args *LookupSubscribedCatalogArgs, opts ...InvokeOption) (*LookupSubscribedCatalogResult, error)
func LookupSubscribedCatalogOutput(ctx *Context, args *LookupSubscribedCatalogOutputArgs, opts ...InvokeOption) LookupSubscribedCatalogResultOutput
> Note: This function is named LookupSubscribedCatalog
in the Go SDK.
public static class GetSubscribedCatalog
{
public static Task<GetSubscribedCatalogResult> InvokeAsync(GetSubscribedCatalogArgs args, InvokeOptions? opts = null)
public static Output<GetSubscribedCatalogResult> Invoke(GetSubscribedCatalogInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSubscribedCatalogResult> getSubscribedCatalog(GetSubscribedCatalogArgs args, InvokeOptions options)
public static Output<GetSubscribedCatalogResult> getSubscribedCatalog(GetSubscribedCatalogArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getSubscribedCatalog:getSubscribedCatalog
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Catalog name. Required if
filter
is not set. - Filter
Get
Subscribed Catalog Filter - Retrieves the data source using one or more filter parameters
- Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- Name string
- Catalog name. Required if
filter
is not set. - Filter
Get
Subscribed Catalog Filter - Retrieves the data source using one or more filter parameters
- Id string
- Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- name String
- Catalog name. Required if
filter
is not set. - filter
Get
Subscribed Catalog Filter - Retrieves the data source using one or more filter parameters
- id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- name string
- Catalog name. Required if
filter
is not set. - filter
Get
Subscribed Catalog Filter - Retrieves the data source using one or more filter parameters
- id string
- org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- name str
- Catalog name. Required if
filter
is not set. - filter
Get
Subscribed Catalog Filter - Retrieves the data source using one or more filter parameters
- id str
- org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
- name String
- Catalog name. Required if
filter
is not set. - filter Property Map
- Retrieves the data source using one or more filter parameters
- id String
- org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations
getSubscribedCatalog Result
The following output properties are available:
- Catalog
Version double - Version number from this catalog.
- Created string
- Date and time of catalog creation.
- Description string
- Description of the catalog. This is inherited from the publishing catalog
- Failed
Tasks List<string> - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- Href string
- the catalog's Hyper reference.
- Id string
- Is
Local bool - (v3.8.1+) Indicates if this catalog was created in the current organization.
- Is
Published bool - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - bool
- Indicates if the catalog is shared (
true
orfalse
). - Make
Local boolCopy - Media
Item List<string>Lists - List of media item names in this catalog, in alphabetical order.
- Name string
- Number
Of doubleMedia - Number of media items available in this catalog.
- Number
Of doubleVapp Templates - Number of vApp templates available in this catalog.
- Owner
Name string - Owner of the catalog.
- Publish
Subscription stringType - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - Running
Tasks List<string> - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- Storage
Profile stringId - Allows to set specific storage profile to be used for catalog.
- Subscription
Url string - The URL to which this catalog is subscribed.
- Vapp
Template List<string>Lists - List of vApp template names in this catalog, in alphabetical order.
- Filter
Get
Subscribed Catalog Filter - Org string
- Catalog
Version float64 - Version number from this catalog.
- Created string
- Date and time of catalog creation.
- Description string
- Description of the catalog. This is inherited from the publishing catalog
- Failed
Tasks []string - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- Href string
- the catalog's Hyper reference.
- Id string
- Is
Local bool - (v3.8.1+) Indicates if this catalog was created in the current organization.
- Is
Published bool - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - bool
- Indicates if the catalog is shared (
true
orfalse
). - Make
Local boolCopy - Media
Item []stringLists - List of media item names in this catalog, in alphabetical order.
- Name string
- Number
Of float64Media - Number of media items available in this catalog.
- Number
Of float64Vapp Templates - Number of vApp templates available in this catalog.
- Owner
Name string - Owner of the catalog.
- Publish
Subscription stringType - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - Running
Tasks []string - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- Storage
Profile stringId - Allows to set specific storage profile to be used for catalog.
- Subscription
Url string - The URL to which this catalog is subscribed.
- Vapp
Template []stringLists - List of vApp template names in this catalog, in alphabetical order.
- Filter
Get
Subscribed Catalog Filter - Org string
- catalog
Version Double - Version number from this catalog.
- created String
- Date and time of catalog creation.
- description String
- Description of the catalog. This is inherited from the publishing catalog
- failed
Tasks List<String> - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- href String
- the catalog's Hyper reference.
- id String
- is
Local Boolean - (v3.8.1+) Indicates if this catalog was created in the current organization.
- is
Published Boolean - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - Boolean
- Indicates if the catalog is shared (
true
orfalse
). - make
Local BooleanCopy - media
Item List<String>Lists - List of media item names in this catalog, in alphabetical order.
- name String
- number
Of DoubleMedia - Number of media items available in this catalog.
- number
Of DoubleVapp Templates - Number of vApp templates available in this catalog.
- owner
Name String - Owner of the catalog.
- publish
Subscription StringType - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - running
Tasks List<String> - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- storage
Profile StringId - Allows to set specific storage profile to be used for catalog.
- subscription
Url String - The URL to which this catalog is subscribed.
- vapp
Template List<String>Lists - List of vApp template names in this catalog, in alphabetical order.
- filter
Get
Subscribed Catalog Filter - org String
- catalog
Version number - Version number from this catalog.
- created string
- Date and time of catalog creation.
- description string
- Description of the catalog. This is inherited from the publishing catalog
- failed
Tasks string[] - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- href string
- the catalog's Hyper reference.
- id string
- is
Local boolean - (v3.8.1+) Indicates if this catalog was created in the current organization.
- is
Published boolean - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - boolean
- Indicates if the catalog is shared (
true
orfalse
). - make
Local booleanCopy - media
Item string[]Lists - List of media item names in this catalog, in alphabetical order.
- name string
- number
Of numberMedia - Number of media items available in this catalog.
- number
Of numberVapp Templates - Number of vApp templates available in this catalog.
- owner
Name string - Owner of the catalog.
- publish
Subscription stringType - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - running
Tasks string[] - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- storage
Profile stringId - Allows to set specific storage profile to be used for catalog.
- subscription
Url string - The URL to which this catalog is subscribed.
- vapp
Template string[]Lists - List of vApp template names in this catalog, in alphabetical order.
- filter
Get
Subscribed Catalog Filter - org string
- catalog_
version float - Version number from this catalog.
- created str
- Date and time of catalog creation.
- description str
- Description of the catalog. This is inherited from the publishing catalog
- failed_
tasks Sequence[str] - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- href str
- the catalog's Hyper reference.
- id str
- is_
local bool - (v3.8.1+) Indicates if this catalog was created in the current organization.
- is_
published bool - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - bool
- Indicates if the catalog is shared (
true
orfalse
). - make_
local_ boolcopy - media_
item_ Sequence[str]lists - List of media item names in this catalog, in alphabetical order.
- name str
- number_
of_ floatmedia - Number of media items available in this catalog.
- number_
of_ floatvapp_ templates - Number of vApp templates available in this catalog.
- owner_
name str - Owner of the catalog.
- publish_
subscription_ strtype - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - running_
tasks Sequence[str] - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- storage_
profile_ strid - Allows to set specific storage profile to be used for catalog.
- subscription_
url str - The URL to which this catalog is subscribed.
- vapp_
template_ Sequence[str]lists - List of vApp template names in this catalog, in alphabetical order.
- filter
Get
Subscribed Catalog Filter - org str
- catalog
Version Number - Version number from this catalog.
- created String
- Date and time of catalog creation.
- description String
- Description of the catalog. This is inherited from the publishing catalog
- failed
Tasks List<String> - List of synchronization tasks that are have failed. They can refer to the catalog or any of its catalog items.
- href String
- the catalog's Hyper reference.
- id String
- is
Local Boolean - (v3.8.1+) Indicates if this catalog was created in the current organization.
- is
Published Boolean - Indicates if this catalog is available for subscription. (Always return
false
for this data source) - Boolean
- Indicates if the catalog is shared (
true
orfalse
). - make
Local BooleanCopy - media
Item List<String>Lists - List of media item names in this catalog, in alphabetical order.
- name String
- number
Of NumberMedia - Number of media items available in this catalog.
- number
Of NumberVapp Templates - Number of vApp templates available in this catalog.
- owner
Name String - Owner of the catalog.
- publish
Subscription StringType - Shows if the catalog is published, if it is a subscription from another one or none of those. (Always returns
SUBSCRIBED
for this data source) - running
Tasks List<String> - List of running synchronization tasks that are still running. They can refer to the catalog or any of its catalog items.
- storage
Profile StringId - Allows to set specific storage profile to be used for catalog.
- subscription
Url String - The URL to which this catalog is subscribed.
- vapp
Template List<String>Lists - List of vApp template names in this catalog, in alphabetical order.
- filter Property Map
- org String
Supporting Types
GetSubscribedCatalogFilter
- Date string
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- Earliest bool
- Retrieves the oldest item
- Latest bool
- Retrieves the newest item
- Metadatas
List<Get
Subscribed Catalog Filter Metadata> - Optional metadata of the catalog. This is inherited from the publishing catalog
- Name
Regex string - Search by name with a regular expression
- Date string
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- Earliest bool
- Retrieves the oldest item
- Latest bool
- Retrieves the newest item
- Metadatas
[]Get
Subscribed Catalog Filter Metadata - Optional metadata of the catalog. This is inherited from the publishing catalog
- Name
Regex string - Search by name with a regular expression
- date String
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- earliest Boolean
- Retrieves the oldest item
- latest Boolean
- Retrieves the newest item
- metadatas
List<Get
Subscribed Catalog Filter Metadata> - Optional metadata of the catalog. This is inherited from the publishing catalog
- name
Regex String - Search by name with a regular expression
- date string
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- earliest boolean
- Retrieves the oldest item
- latest boolean
- Retrieves the newest item
- metadatas
Get
Subscribed Catalog Filter Metadata[] - Optional metadata of the catalog. This is inherited from the publishing catalog
- name
Regex string - Search by name with a regular expression
- date str
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- earliest bool
- Retrieves the oldest item
- latest bool
- Retrieves the newest item
- metadatas
Sequence[Get
Subscribed Catalog Filter Metadata] - Optional metadata of the catalog. This is inherited from the publishing catalog
- name_
regex str - Search by name with a regular expression
- date String
- Search by date comparison ({>|>=|<|<=|==} yyyy-mm-dd[ hh[:mm[:ss]]])
- earliest Boolean
- Retrieves the oldest item
- latest Boolean
- Retrieves the newest item
- metadatas List<Property Map>
- Optional metadata of the catalog. This is inherited from the publishing catalog
- name
Regex String - Search by name with a regular expression
GetSubscribedCatalogFilterMetadata
- Key string
- Metadata key (field name)
- Value string
- Metadata value (can be a regular expression if "use_api_search" is false)
- Is
System bool - True if is a metadata@SYSTEM key
- Type string
- Type of metadata value (needed only if "use_api_search" is true)
- Use
Api boolSearch - If true, will search the vCD using native metadata query (without regular expressions)
- Key string
- Metadata key (field name)
- Value string
- Metadata value (can be a regular expression if "use_api_search" is false)
- Is
System bool - True if is a metadata@SYSTEM key
- Type string
- Type of metadata value (needed only if "use_api_search" is true)
- Use
Api boolSearch - If true, will search the vCD using native metadata query (without regular expressions)
- key String
- Metadata key (field name)
- value String
- Metadata value (can be a regular expression if "use_api_search" is false)
- is
System Boolean - True if is a metadata@SYSTEM key
- type String
- Type of metadata value (needed only if "use_api_search" is true)
- use
Api BooleanSearch - If true, will search the vCD using native metadata query (without regular expressions)
- key string
- Metadata key (field name)
- value string
- Metadata value (can be a regular expression if "use_api_search" is false)
- is
System boolean - True if is a metadata@SYSTEM key
- type string
- Type of metadata value (needed only if "use_api_search" is true)
- use
Api booleanSearch - If true, will search the vCD using native metadata query (without regular expressions)
- key str
- Metadata key (field name)
- value str
- Metadata value (can be a regular expression if "use_api_search" is false)
- is_
system bool - True if is a metadata@SYSTEM key
- type str
- Type of metadata value (needed only if "use_api_search" is true)
- use_
api_ boolsearch - If true, will search the vCD using native metadata query (without regular expressions)
- key String
- Metadata key (field name)
- value String
- Metadata value (can be a regular expression if "use_api_search" is false)
- is
System Boolean - True if is a metadata@SYSTEM key
- type String
- Type of metadata value (needed only if "use_api_search" is true)
- use
Api BooleanSearch - If true, will search the vCD using native metadata query (without regular expressions)
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.