1. Packages
  2. Vsphere Provider
  3. API Docs
  4. ContentLibrary
vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi

vsphere.ContentLibrary

Explore with Pulumi AI

vsphere logo
vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi

    The vsphere.ContentLibrary resource can be used to manage content libraries.

    NOTE: This resource requires a vCenter Server instance and is not available on direct ESXi host connections.

    Example Usage

    The following example creates a publishing content library using the datastore named publisher-datastore as the storage backing.

    import * as pulumi from "@pulumi/pulumi";
    import * as vsphere from "@pulumi/vsphere";
    
    const datacenterA = vsphere.getDatacenter({
        name: "dc-01-a",
    });
    const publisherDatastore = datacenterA.then(datacenterA => vsphere.getDatastore({
        name: "publisher-datastore",
        datacenterId: datacenterA.id,
    }));
    const publisherContentLibrary = new vsphere.ContentLibrary("publisher_content_library", {
        name: "Publisher Content Library",
        description: "A publishing content library.",
        storageBackings: [publisherDatastore.then(publisherDatastore => publisherDatastore.id)],
    });
    
    import pulumi
    import pulumi_vsphere as vsphere
    
    datacenter_a = vsphere.get_datacenter(name="dc-01-a")
    publisher_datastore = vsphere.get_datastore(name="publisher-datastore",
        datacenter_id=datacenter_a.id)
    publisher_content_library = vsphere.ContentLibrary("publisher_content_library",
        name="Publisher Content Library",
        description="A publishing content library.",
        storage_backings=[publisher_datastore.id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		datacenterA, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
    			Name: pulumi.StringRef("dc-01-a"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		publisherDatastore, err := vsphere.GetDatastore(ctx, &vsphere.GetDatastoreArgs{
    			Name:         "publisher-datastore",
    			DatacenterId: pulumi.StringRef(datacenterA.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vsphere.NewContentLibrary(ctx, "publisher_content_library", &vsphere.ContentLibraryArgs{
    			Name:        pulumi.String("Publisher Content Library"),
    			Description: pulumi.String("A publishing content library."),
    			StorageBackings: pulumi.StringArray{
    				pulumi.String(publisherDatastore.Id),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using VSphere = Pulumi.VSphere;
    
    return await Deployment.RunAsync(() => 
    {
        var datacenterA = VSphere.GetDatacenter.Invoke(new()
        {
            Name = "dc-01-a",
        });
    
        var publisherDatastore = VSphere.GetDatastore.Invoke(new()
        {
            Name = "publisher-datastore",
            DatacenterId = datacenterA.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        var publisherContentLibrary = new VSphere.ContentLibrary("publisher_content_library", new()
        {
            Name = "Publisher Content Library",
            Description = "A publishing content library.",
            StorageBackings = new[]
            {
                publisherDatastore.Apply(getDatastoreResult => getDatastoreResult.Id),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vsphere.VsphereFunctions;
    import com.pulumi.vsphere.inputs.GetDatacenterArgs;
    import com.pulumi.vsphere.inputs.GetDatastoreArgs;
    import com.pulumi.vsphere.ContentLibrary;
    import com.pulumi.vsphere.ContentLibraryArgs;
    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 datacenterA = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
                .name("dc-01-a")
                .build());
    
            final var publisherDatastore = VsphereFunctions.getDatastore(GetDatastoreArgs.builder()
                .name("publisher-datastore")
                .datacenterId(datacenterA.applyValue(getDatacenterResult -> getDatacenterResult.id()))
                .build());
    
            var publisherContentLibrary = new ContentLibrary("publisherContentLibrary", ContentLibraryArgs.builder()
                .name("Publisher Content Library")
                .description("A publishing content library.")
                .storageBackings(publisherDatastore.applyValue(getDatastoreResult -> getDatastoreResult.id()))
                .build());
    
        }
    }
    
    resources:
      publisherContentLibrary:
        type: vsphere:ContentLibrary
        name: publisher_content_library
        properties:
          name: Publisher Content Library
          description: A publishing content library.
          storageBackings:
            - ${publisherDatastore.id}
    variables:
      datacenterA:
        fn::invoke:
          Function: vsphere:getDatacenter
          Arguments:
            name: dc-01-a
      publisherDatastore:
        fn::invoke:
          Function: vsphere:getDatastore
          Arguments:
            name: publisher-datastore
            datacenterId: ${datacenterA.id}
    

    The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named subscriber-datastore as the storage backing.

    import * as pulumi from "@pulumi/pulumi";
    import * as vsphere from "@pulumi/vsphere";
    
    const datacenterB = vsphere.getDatacenter({
        name: "dc-01-b",
    });
    const subscriberDatastore = datacenterB.then(datacenterB => vsphere.getDatastore({
        name: "subscriber-datastore",
        datacenterId: datacenterB.id,
    }));
    const subscriberContentLibrary = new vsphere.ContentLibrary("subscriber_content_library", {
        name: "Subscriber Content Library",
        description: "A subscribing content library.",
        storageBackings: [subscriberDatastore.then(subscriberDatastore => subscriberDatastore.id)],
        subscription: {
            subscriptionUrl: "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
            automaticSync: true,
            onDemand: false,
        },
    });
    
    import pulumi
    import pulumi_vsphere as vsphere
    
    datacenter_b = vsphere.get_datacenter(name="dc-01-b")
    subscriber_datastore = vsphere.get_datastore(name="subscriber-datastore",
        datacenter_id=datacenter_b.id)
    subscriber_content_library = vsphere.ContentLibrary("subscriber_content_library",
        name="Subscriber Content Library",
        description="A subscribing content library.",
        storage_backings=[subscriber_datastore.id],
        subscription={
            "subscription_url": "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
            "automatic_sync": True,
            "on_demand": False,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		datacenterB, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
    			Name: pulumi.StringRef("dc-01-b"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		subscriberDatastore, err := vsphere.GetDatastore(ctx, &vsphere.GetDatastoreArgs{
    			Name:         "subscriber-datastore",
    			DatacenterId: pulumi.StringRef(datacenterB.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vsphere.NewContentLibrary(ctx, "subscriber_content_library", &vsphere.ContentLibraryArgs{
    			Name:        pulumi.String("Subscriber Content Library"),
    			Description: pulumi.String("A subscribing content library."),
    			StorageBackings: pulumi.StringArray{
    				pulumi.String(subscriberDatastore.Id),
    			},
    			Subscription: &vsphere.ContentLibrarySubscriptionArgs{
    				SubscriptionUrl: pulumi.String("https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json"),
    				AutomaticSync:   pulumi.Bool(true),
    				OnDemand:        pulumi.Bool(false),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using VSphere = Pulumi.VSphere;
    
    return await Deployment.RunAsync(() => 
    {
        var datacenterB = VSphere.GetDatacenter.Invoke(new()
        {
            Name = "dc-01-b",
        });
    
        var subscriberDatastore = VSphere.GetDatastore.Invoke(new()
        {
            Name = "subscriber-datastore",
            DatacenterId = datacenterB.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        var subscriberContentLibrary = new VSphere.ContentLibrary("subscriber_content_library", new()
        {
            Name = "Subscriber Content Library",
            Description = "A subscribing content library.",
            StorageBackings = new[]
            {
                subscriberDatastore.Apply(getDatastoreResult => getDatastoreResult.Id),
            },
            Subscription = new VSphere.Inputs.ContentLibrarySubscriptionArgs
            {
                SubscriptionUrl = "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
                AutomaticSync = true,
                OnDemand = false,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vsphere.VsphereFunctions;
    import com.pulumi.vsphere.inputs.GetDatacenterArgs;
    import com.pulumi.vsphere.inputs.GetDatastoreArgs;
    import com.pulumi.vsphere.ContentLibrary;
    import com.pulumi.vsphere.ContentLibraryArgs;
    import com.pulumi.vsphere.inputs.ContentLibrarySubscriptionArgs;
    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 datacenterB = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
                .name("dc-01-b")
                .build());
    
            final var subscriberDatastore = VsphereFunctions.getDatastore(GetDatastoreArgs.builder()
                .name("subscriber-datastore")
                .datacenterId(datacenterB.applyValue(getDatacenterResult -> getDatacenterResult.id()))
                .build());
    
            var subscriberContentLibrary = new ContentLibrary("subscriberContentLibrary", ContentLibraryArgs.builder()
                .name("Subscriber Content Library")
                .description("A subscribing content library.")
                .storageBackings(subscriberDatastore.applyValue(getDatastoreResult -> getDatastoreResult.id()))
                .subscription(ContentLibrarySubscriptionArgs.builder()
                    .subscriptionUrl("https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json")
                    .automaticSync(true)
                    .onDemand(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      subscriberContentLibrary:
        type: vsphere:ContentLibrary
        name: subscriber_content_library
        properties:
          name: Subscriber Content Library
          description: A subscribing content library.
          storageBackings:
            - ${subscriberDatastore.id}
          subscription:
            subscriptionUrl: https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json
            automaticSync: true
            onDemand: false
    variables:
      datacenterB:
        fn::invoke:
          Function: vsphere:getDatacenter
          Arguments:
            name: dc-01-b
      subscriberDatastore:
        fn::invoke:
          Function: vsphere:getDatastore
          Arguments:
            name: subscriber-datastore
            datacenterId: ${datacenterB.id}
    

    Create ContentLibrary Resource

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

    Constructor syntax

    new ContentLibrary(name: string, args: ContentLibraryArgs, opts?: CustomResourceOptions);
    @overload
    def ContentLibrary(resource_name: str,
                       args: ContentLibraryArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContentLibrary(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       storage_backings: Optional[Sequence[str]] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None,
                       publication: Optional[ContentLibraryPublicationArgs] = None,
                       subscription: Optional[ContentLibrarySubscriptionArgs] = None)
    func NewContentLibrary(ctx *Context, name string, args ContentLibraryArgs, opts ...ResourceOption) (*ContentLibrary, error)
    public ContentLibrary(string name, ContentLibraryArgs args, CustomResourceOptions? opts = null)
    public ContentLibrary(String name, ContentLibraryArgs args)
    public ContentLibrary(String name, ContentLibraryArgs args, CustomResourceOptions options)
    
    type: vsphere:ContentLibrary
    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 ContentLibraryArgs
    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 ContentLibraryArgs
    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 ContentLibraryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContentLibraryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContentLibraryArgs
    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 contentLibraryResource = new VSphere.ContentLibrary("contentLibraryResource", new()
    {
        StorageBackings = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
        Publication = new VSphere.Inputs.ContentLibraryPublicationArgs
        {
            AuthenticationMethod = "string",
            Password = "string",
            PublishUrl = "string",
            Published = false,
            Username = "string",
        },
        Subscription = new VSphere.Inputs.ContentLibrarySubscriptionArgs
        {
            AuthenticationMethod = "string",
            AutomaticSync = false,
            OnDemand = false,
            Password = "string",
            SubscriptionUrl = "string",
            Username = "string",
        },
    });
    
    example, err := vsphere.NewContentLibrary(ctx, "contentLibraryResource", &vsphere.ContentLibraryArgs{
    	StorageBackings: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Publication: &vsphere.ContentLibraryPublicationArgs{
    		AuthenticationMethod: pulumi.String("string"),
    		Password:             pulumi.String("string"),
    		PublishUrl:           pulumi.String("string"),
    		Published:            pulumi.Bool(false),
    		Username:             pulumi.String("string"),
    	},
    	Subscription: &vsphere.ContentLibrarySubscriptionArgs{
    		AuthenticationMethod: pulumi.String("string"),
    		AutomaticSync:        pulumi.Bool(false),
    		OnDemand:             pulumi.Bool(false),
    		Password:             pulumi.String("string"),
    		SubscriptionUrl:      pulumi.String("string"),
    		Username:             pulumi.String("string"),
    	},
    })
    
    var contentLibraryResource = new ContentLibrary("contentLibraryResource", ContentLibraryArgs.builder()
        .storageBackings("string")
        .description("string")
        .name("string")
        .publication(ContentLibraryPublicationArgs.builder()
            .authenticationMethod("string")
            .password("string")
            .publishUrl("string")
            .published(false)
            .username("string")
            .build())
        .subscription(ContentLibrarySubscriptionArgs.builder()
            .authenticationMethod("string")
            .automaticSync(false)
            .onDemand(false)
            .password("string")
            .subscriptionUrl("string")
            .username("string")
            .build())
        .build());
    
    content_library_resource = vsphere.ContentLibrary("contentLibraryResource",
        storage_backings=["string"],
        description="string",
        name="string",
        publication={
            "authentication_method": "string",
            "password": "string",
            "publish_url": "string",
            "published": False,
            "username": "string",
        },
        subscription={
            "authentication_method": "string",
            "automatic_sync": False,
            "on_demand": False,
            "password": "string",
            "subscription_url": "string",
            "username": "string",
        })
    
    const contentLibraryResource = new vsphere.ContentLibrary("contentLibraryResource", {
        storageBackings: ["string"],
        description: "string",
        name: "string",
        publication: {
            authenticationMethod: "string",
            password: "string",
            publishUrl: "string",
            published: false,
            username: "string",
        },
        subscription: {
            authenticationMethod: "string",
            automaticSync: false,
            onDemand: false,
            password: "string",
            subscriptionUrl: "string",
            username: "string",
        },
    });
    
    type: vsphere:ContentLibrary
    properties:
        description: string
        name: string
        publication:
            authenticationMethod: string
            password: string
            publishUrl: string
            published: false
            username: string
        storageBackings:
            - string
        subscription:
            authenticationMethod: string
            automaticSync: false
            onDemand: false
            password: string
            subscriptionUrl: string
            username: string
    

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

    StorageBackings List<string>
    The managed object reference ID of the datastore on which to store the content library items.
    Description string
    A description for the content library.
    Name string
    The name of the content library.
    Publication Pulumi.VSphere.Inputs.ContentLibraryPublication
    Options to publish a local content library.
    Subscription Pulumi.VSphere.Inputs.ContentLibrarySubscription
    Options subscribe to a published content library.
    StorageBackings []string
    The managed object reference ID of the datastore on which to store the content library items.
    Description string
    A description for the content library.
    Name string
    The name of the content library.
    Publication ContentLibraryPublicationArgs
    Options to publish a local content library.
    Subscription ContentLibrarySubscriptionArgs
    Options subscribe to a published content library.
    storageBackings List<String>
    The managed object reference ID of the datastore on which to store the content library items.
    description String
    A description for the content library.
    name String
    The name of the content library.
    publication ContentLibraryPublication
    Options to publish a local content library.
    subscription ContentLibrarySubscription
    Options subscribe to a published content library.
    storageBackings string[]
    The managed object reference ID of the datastore on which to store the content library items.
    description string
    A description for the content library.
    name string
    The name of the content library.
    publication ContentLibraryPublication
    Options to publish a local content library.
    subscription ContentLibrarySubscription
    Options subscribe to a published content library.
    storage_backings Sequence[str]
    The managed object reference ID of the datastore on which to store the content library items.
    description str
    A description for the content library.
    name str
    The name of the content library.
    publication ContentLibraryPublicationArgs
    Options to publish a local content library.
    subscription ContentLibrarySubscriptionArgs
    Options subscribe to a published content library.
    storageBackings List<String>
    The managed object reference ID of the datastore on which to store the content library items.
    description String
    A description for the content library.
    name String
    The name of the content library.
    publication Property Map
    Options to publish a local content library.
    subscription Property Map
    Options subscribe to a published content library.

    Outputs

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

    Get an existing ContentLibrary 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?: ContentLibraryState, opts?: CustomResourceOptions): ContentLibrary
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            publication: Optional[ContentLibraryPublicationArgs] = None,
            storage_backings: Optional[Sequence[str]] = None,
            subscription: Optional[ContentLibrarySubscriptionArgs] = None) -> ContentLibrary
    func GetContentLibrary(ctx *Context, name string, id IDInput, state *ContentLibraryState, opts ...ResourceOption) (*ContentLibrary, error)
    public static ContentLibrary Get(string name, Input<string> id, ContentLibraryState? state, CustomResourceOptions? opts = null)
    public static ContentLibrary get(String name, Output<String> id, ContentLibraryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    Description string
    A description for the content library.
    Name string
    The name of the content library.
    Publication Pulumi.VSphere.Inputs.ContentLibraryPublication
    Options to publish a local content library.
    StorageBackings List<string>
    The managed object reference ID of the datastore on which to store the content library items.
    Subscription Pulumi.VSphere.Inputs.ContentLibrarySubscription
    Options subscribe to a published content library.
    Description string
    A description for the content library.
    Name string
    The name of the content library.
    Publication ContentLibraryPublicationArgs
    Options to publish a local content library.
    StorageBackings []string
    The managed object reference ID of the datastore on which to store the content library items.
    Subscription ContentLibrarySubscriptionArgs
    Options subscribe to a published content library.
    description String
    A description for the content library.
    name String
    The name of the content library.
    publication ContentLibraryPublication
    Options to publish a local content library.
    storageBackings List<String>
    The managed object reference ID of the datastore on which to store the content library items.
    subscription ContentLibrarySubscription
    Options subscribe to a published content library.
    description string
    A description for the content library.
    name string
    The name of the content library.
    publication ContentLibraryPublication
    Options to publish a local content library.
    storageBackings string[]
    The managed object reference ID of the datastore on which to store the content library items.
    subscription ContentLibrarySubscription
    Options subscribe to a published content library.
    description str
    A description for the content library.
    name str
    The name of the content library.
    publication ContentLibraryPublicationArgs
    Options to publish a local content library.
    storage_backings Sequence[str]
    The managed object reference ID of the datastore on which to store the content library items.
    subscription ContentLibrarySubscriptionArgs
    Options subscribe to a published content library.
    description String
    A description for the content library.
    name String
    The name of the content library.
    publication Property Map
    Options to publish a local content library.
    storageBackings List<String>
    The managed object reference ID of the datastore on which to store the content library items.
    subscription Property Map
    Options subscribe to a published content library.

    Supporting Types

    ContentLibraryPublication, ContentLibraryPublicationArgs

    AuthenticationMethod string
    Method to authenticate users. Must be NONE or BASIC.
    Password string
    Password used by subscribers to authenticate.
    PublishUrl string
    The URL of the published content library.
    Published bool
    Publish the content library. Default false.
    Username string
    Username used by subscribers to authenticate. Currently can only be vcsp.
    AuthenticationMethod string
    Method to authenticate users. Must be NONE or BASIC.
    Password string
    Password used by subscribers to authenticate.
    PublishUrl string
    The URL of the published content library.
    Published bool
    Publish the content library. Default false.
    Username string
    Username used by subscribers to authenticate. Currently can only be vcsp.
    authenticationMethod String
    Method to authenticate users. Must be NONE or BASIC.
    password String
    Password used by subscribers to authenticate.
    publishUrl String
    The URL of the published content library.
    published Boolean
    Publish the content library. Default false.
    username String
    Username used by subscribers to authenticate. Currently can only be vcsp.
    authenticationMethod string
    Method to authenticate users. Must be NONE or BASIC.
    password string
    Password used by subscribers to authenticate.
    publishUrl string
    The URL of the published content library.
    published boolean
    Publish the content library. Default false.
    username string
    Username used by subscribers to authenticate. Currently can only be vcsp.
    authentication_method str
    Method to authenticate users. Must be NONE or BASIC.
    password str
    Password used by subscribers to authenticate.
    publish_url str
    The URL of the published content library.
    published bool
    Publish the content library. Default false.
    username str
    Username used by subscribers to authenticate. Currently can only be vcsp.
    authenticationMethod String
    Method to authenticate users. Must be NONE or BASIC.
    password String
    Password used by subscribers to authenticate.
    publishUrl String
    The URL of the published content library.
    published Boolean
    Publish the content library. Default false.
    username String
    Username used by subscribers to authenticate. Currently can only be vcsp.

    ContentLibrarySubscription, ContentLibrarySubscriptionArgs

    AuthenticationMethod string
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    AutomaticSync bool
    Enable automatic synchronization with the published library. Default false.
    OnDemand bool
    Download the library from a content only when needed. Default true.
    Password string
    Password used for authentication.
    SubscriptionUrl string
    URL of the published content library.
    Username string
    Username used for authentication.
    AuthenticationMethod string
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    AutomaticSync bool
    Enable automatic synchronization with the published library. Default false.
    OnDemand bool
    Download the library from a content only when needed. Default true.
    Password string
    Password used for authentication.
    SubscriptionUrl string
    URL of the published content library.
    Username string
    Username used for authentication.
    authenticationMethod String
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    automaticSync Boolean
    Enable automatic synchronization with the published library. Default false.
    onDemand Boolean
    Download the library from a content only when needed. Default true.
    password String
    Password used for authentication.
    subscriptionUrl String
    URL of the published content library.
    username String
    Username used for authentication.
    authenticationMethod string
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    automaticSync boolean
    Enable automatic synchronization with the published library. Default false.
    onDemand boolean
    Download the library from a content only when needed. Default true.
    password string
    Password used for authentication.
    subscriptionUrl string
    URL of the published content library.
    username string
    Username used for authentication.
    authentication_method str
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    automatic_sync bool
    Enable automatic synchronization with the published library. Default false.
    on_demand bool
    Download the library from a content only when needed. Default true.
    password str
    Password used for authentication.
    subscription_url str
    URL of the published content library.
    username str
    Username used for authentication.
    authenticationMethod String
    Authentication method to connect ro a published content library. Must be NONE or BASIC.
    automaticSync Boolean
    Enable automatic synchronization with the published library. Default false.
    onDemand Boolean
    Download the library from a content only when needed. Default true.
    password String
    Password used for authentication.
    subscriptionUrl String
    URL of the published content library.
    username String
    Username used for authentication.

    Import

    An existing content library can be imported into this resource by supplying the content library ID. For example:

    $ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vSphere pulumi/pulumi-vsphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vsphere Terraform Provider.
    vsphere logo
    vSphere v4.12.1 published on Tuesday, Oct 22, 2024 by Pulumi