1. Packages
  2. CTFd Provider
  3. API Docs
  4. getChallenges
CTFd v0.1.25 published on Tuesday, Apr 9, 2024 by CTFer.io

ctfd.getChallenges

Explore with Pulumi AI

ctfd logo
CTFd v0.1.25 published on Tuesday, Apr 9, 2024 by CTFer.io

    Using getChallenges

    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 getChallenges(opts?: InvokeOptions): Promise<GetChallengesResult>
    function getChallengesOutput(opts?: InvokeOptions): Output<GetChallengesResult>
    def get_challenges(opts: Optional[InvokeOptions] = None) -> GetChallengesResult
    def get_challenges_output(opts: Optional[InvokeOptions] = None) -> Output[GetChallengesResult]
    func GetChallenges(ctx *Context, opts ...InvokeOption) (*GetChallengesResult, error)
    func GetChallengesOutput(ctx *Context, opts ...InvokeOption) GetChallengesResultOutput

    > Note: This function is named GetChallenges in the Go SDK.

    public static class GetChallenges 
    {
        public static Task<GetChallengesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetChallengesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetChallengesResult> getChallenges(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ctfd:index/getChallenges:getChallenges
      arguments:
        # arguments dictionary

    getChallenges Result

    The following output properties are available:

    Challenges []GetChallengesChallenge
    Id string
    The ID of this resource.
    challenges List<GetChallengesChallenge>
    id String
    The ID of this resource.
    challenges GetChallengesChallenge[]
    id string
    The ID of this resource.
    challenges List<Property Map>
    id String
    The ID of this resource.

    Supporting Types

    GetChallengesChallenge

    Category string
    Category of the challenge that CTFd groups by on the web UI.
    ConnectionInfo string
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    Decay int
    Description string
    Description of the challenge, consider using multiline descriptions for better style.
    Files List<CTFerio.Ctfd.Inputs.GetChallengesChallengeFile>
    List of files given to players to flag the challenge.
    Flags List<CTFerio.Ctfd.Inputs.GetChallengesChallengeFlag>
    List of challenge flags that solves it.
    Function string
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    Hints List<CTFerio.Ctfd.Inputs.GetChallengesChallengeHint>
    List of hints about the challenge displayed to the end-user.
    Id string
    Identifier of the challenge.
    MaxAttempts int
    Maximum amount of attempts before being unable to flag the challenge.
    Minimum int
    Name string
    Name of the challenge, displayed as it.
    Next int
    Suggestion for the end-user as next challenge to work on.
    Requirements CTFerio.Ctfd.Inputs.GetChallengesChallengeRequirements
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    State string
    State of the challenge, either hidden or visible.
    Tags List<string>
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    Topics List<string>
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    Type string
    Type of the challenge defining its layout, either standard or dynamic.
    Value int
    Category string
    Category of the challenge that CTFd groups by on the web UI.
    ConnectionInfo string
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    Decay int
    Description string
    Description of the challenge, consider using multiline descriptions for better style.
    Files []GetChallengesChallengeFile
    List of files given to players to flag the challenge.
    Flags []GetChallengesChallengeFlag
    List of challenge flags that solves it.
    Function string
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    Hints []GetChallengesChallengeHint
    List of hints about the challenge displayed to the end-user.
    Id string
    Identifier of the challenge.
    MaxAttempts int
    Maximum amount of attempts before being unable to flag the challenge.
    Minimum int
    Name string
    Name of the challenge, displayed as it.
    Next int
    Suggestion for the end-user as next challenge to work on.
    Requirements GetChallengesChallengeRequirements
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    State string
    State of the challenge, either hidden or visible.
    Tags []string
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    Topics []string
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    Type string
    Type of the challenge defining its layout, either standard or dynamic.
    Value int
    category String
    Category of the challenge that CTFd groups by on the web UI.
    connectionInfo String
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    decay Integer
    description String
    Description of the challenge, consider using multiline descriptions for better style.
    files List<GetChallengesChallengeFile>
    List of files given to players to flag the challenge.
    flags List<GetChallengesChallengeFlag>
    List of challenge flags that solves it.
    function String
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    hints List<GetChallengesChallengeHint>
    List of hints about the challenge displayed to the end-user.
    id String
    Identifier of the challenge.
    maxAttempts Integer
    Maximum amount of attempts before being unable to flag the challenge.
    minimum Integer
    name String
    Name of the challenge, displayed as it.
    next Integer
    Suggestion for the end-user as next challenge to work on.
    requirements GetChallengesChallengeRequirements
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    state String
    State of the challenge, either hidden or visible.
    tags List<String>
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    topics List<String>
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    type String
    Type of the challenge defining its layout, either standard or dynamic.
    value Integer
    category string
    Category of the challenge that CTFd groups by on the web UI.
    connectionInfo string
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    decay number
    description string
    Description of the challenge, consider using multiline descriptions for better style.
    files GetChallengesChallengeFile[]
    List of files given to players to flag the challenge.
    flags GetChallengesChallengeFlag[]
    List of challenge flags that solves it.
    function string
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    hints GetChallengesChallengeHint[]
    List of hints about the challenge displayed to the end-user.
    id string
    Identifier of the challenge.
    maxAttempts number
    Maximum amount of attempts before being unable to flag the challenge.
    minimum number
    name string
    Name of the challenge, displayed as it.
    next number
    Suggestion for the end-user as next challenge to work on.
    requirements GetChallengesChallengeRequirements
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    state string
    State of the challenge, either hidden or visible.
    tags string[]
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    topics string[]
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    type string
    Type of the challenge defining its layout, either standard or dynamic.
    value number
    category str
    Category of the challenge that CTFd groups by on the web UI.
    connection_info str
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    decay int
    description str
    Description of the challenge, consider using multiline descriptions for better style.
    files Sequence[GetChallengesChallengeFile]
    List of files given to players to flag the challenge.
    flags Sequence[GetChallengesChallengeFlag]
    List of challenge flags that solves it.
    function str
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    hints Sequence[GetChallengesChallengeHint]
    List of hints about the challenge displayed to the end-user.
    id str
    Identifier of the challenge.
    max_attempts int
    Maximum amount of attempts before being unable to flag the challenge.
    minimum int
    name str
    Name of the challenge, displayed as it.
    next int
    Suggestion for the end-user as next challenge to work on.
    requirements GetChallengesChallengeRequirements
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    state str
    State of the challenge, either hidden or visible.
    tags Sequence[str]
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    topics Sequence[str]
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    type str
    Type of the challenge defining its layout, either standard or dynamic.
    value int
    category String
    Category of the challenge that CTFd groups by on the web UI.
    connectionInfo String
    Connection Information to connect to the challenge instance, useful for pwn or web pentest.
    decay Number
    description String
    Description of the challenge, consider using multiline descriptions for better style.
    files List<Property Map>
    List of files given to players to flag the challenge.
    flags List<Property Map>
    List of challenge flags that solves it.
    function String
    Decay function to define how the challenge value evolve through solves, either linear or logarithmic.
    hints List<Property Map>
    List of hints about the challenge displayed to the end-user.
    id String
    Identifier of the challenge.
    maxAttempts Number
    Maximum amount of attempts before being unable to flag the challenge.
    minimum Number
    name String
    Name of the challenge, displayed as it.
    next Number
    Suggestion for the end-user as next challenge to work on.
    requirements Property Map
    List of required challenges that needs to get flagged before this one being accessible. Useful for skill-trees-like strategy CTF.
    state String
    State of the challenge, either hidden or visible.
    tags List<String>
    List of challenge tags that will be displayed to the end-user. You could use them to give some quick insights of what a challenge involves.
    topics List<String>
    List of challenge topics that are displayed to the administrators for maintenance and planification.
    type String
    Type of the challenge defining its layout, either standard or dynamic.
    value Number

    GetChallengesChallengeFile

    Content string
    Contentb64 string
    Id string
    Location string
    Name string
    Content string
    Contentb64 string
    Id string
    Location string
    Name string
    content String
    contentb64 String
    id String
    location String
    name String
    content string
    contentb64 string
    id string
    location string
    name string
    content String
    contentb64 String
    id String
    location String
    name String

    GetChallengesChallengeFlag

    Content string
    Data string
    Id string
    Type string
    Content string
    Data string
    Id string
    Type string
    content String
    data String
    id String
    type String
    content string
    data string
    id string
    type string
    content str
    data str
    id str
    type str
    content String
    data String
    id String
    type String

    GetChallengesChallengeHint

    Content string
    Cost int
    Id string
    Requirements List<string>
    Content string
    Cost int
    Id string
    Requirements []string
    content String
    cost Integer
    id String
    requirements List<String>
    content string
    cost number
    id string
    requirements string[]
    content str
    cost int
    id str
    requirements Sequence[str]
    content String
    cost Number
    id String
    requirements List<String>

    GetChallengesChallengeRequirements

    Behavior string
    Behavior if not unlocked, either hidden or anonymized.
    Prerequisites List<string>
    List of the challenges ID.
    Behavior string
    Behavior if not unlocked, either hidden or anonymized.
    Prerequisites []string
    List of the challenges ID.
    behavior String
    Behavior if not unlocked, either hidden or anonymized.
    prerequisites List<String>
    List of the challenges ID.
    behavior string
    Behavior if not unlocked, either hidden or anonymized.
    prerequisites string[]
    List of the challenges ID.
    behavior str
    Behavior if not unlocked, either hidden or anonymized.
    prerequisites Sequence[str]
    List of the challenges ID.
    behavior String
    Behavior if not unlocked, either hidden or anonymized.
    prerequisites List<String>
    List of the challenges ID.

    Package Details

    Repository
    ctfd ctfer-io/pulumi-ctfd
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ctfd Terraform Provider.
    ctfd logo
    CTFd v0.1.25 published on Tuesday, Apr 9, 2024 by CTFer.io