create_reservation: Create reservation

View source: R/create_reservation.R

create_reservationR Documentation

Create reservation

Description

Reserves the next available identifier for the specified scope

Usage

create_reservation(scope, env = "production")

Arguments

scope

(character) Scope of data package

env

(character) Repository environment. Can be: "production", "staging", or "development".

Value

(numeric) Identifier of reserved data package

Note

User authentication is required (see login())

See Also

Other Identifier Reservations: delete_reservation(), list_active_reservations(), list_reservation_identifiers()

Examples

## Not run: 

login()

# Create reservation
identifier <- create_reservation(scope = "edi", env = "staging")
identifier
#> [1] 604

# Delete reservation
delete_reservation(scope = "edi", identifier = identifier, env = "staging")
#> [1] 604

logout()

## End(Not run)


EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.